Skip to content

Commit 4912588

Browse files
committed
Fix GraalVM reflection metadata for GraphQL client
Prior to this commit, the embedded reachability metadata for GraalVM would declare a reflection hint for `GraphQlWebSocketMessage` when the RSocket or WebSocket clients are reachable. The `CodecDelegate` relies on this message class to test codecs and detect a JSON-capable instance. This is true for all supported GraphQlClient implementations. This commit revisits the embedded reachability metadata to: * allow reflection on `GraphQlWebSocketMessage` if any client extending `AbstractGraphQlClientBuilder` is available * allow reflection on `GraphQlWebSocketMessage` if a `GraphQlWebSocketHandler` is reachable Fixes gh-825
1 parent 6c15e09 commit 4912588

File tree

1 file changed

+2
-2
lines changed
  • spring-graphql/src/main/resources/META-INF/native-image/org.springframework.graphql/spring-graphql

1 file changed

+2
-2
lines changed

spring-graphql/src/main/resources/META-INF/native-image/org.springframework.graphql/spring-graphql/reflect-config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"allDeclaredMethods":true,
1313
"allDeclaredConstructors":true,
1414
"condition": {
15-
"typeReachable": "org.springframework.graphql.client.DefaultRSocketGraphQlClientBuilder"
15+
"typeReachable": "org.springframework.graphql.client.AbstractGraphQlClientBuilder"
1616
}
1717
},
1818
{
@@ -21,7 +21,7 @@
2121
"allDeclaredMethods":true,
2222
"allDeclaredConstructors":true,
2323
"condition": {
24-
"typeReachable": "org.springframework.graphql.client.DefaultWebSocketGraphQlClientBuilder"
24+
"typeReachable": "org.springframework.graphql.server.webflux.GraphQlWebSocketHandler"
2525
}
2626
}
2727
]

0 commit comments

Comments
 (0)