You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 60adaff
Browse filesBrowse the repository at this point in the historyBrowse files
privatefunerror(potentialMatch:PotentialMatch, msg:String) =SchemaClassScannerError("Unable to match type definition (${potentialMatch.graphQLType}) for reference ${potentialMatch.reference} with java type (${potentialMatch.javaType}): $msg")
21
18
22
19
funmatch(potentialMatch:PotentialMatch): Match {
@@ -25,33 +22,33 @@ internal class TypeClassMatcher(private val definitionsByName: Map<String, TypeD
25
22
26
23
privatefunmatch(potentialMatch:PotentialMatch, graphQLType:GraphQLLangType, javaType:JavaType, root:Boolean = false): Match {
27
24
28
-
var realType = potentialMatch.generic.unwrapGenericType(javaType)
25
+
var realType = potentialMatch.typeResolver.resolve(javaType)
29
26
30
-
if (realType isParameterizedType&&potentialMatch.generic.isTypeAssignableFromRawClass(realType, DataFetcherResult::class.java)) {
27
+
if (realType isParameterizedType&&realType.isSubtypeOf(DataFetcherResult::class.java)) {
31
28
if (potentialMatch.location !=Location.RETURN_TYPE) {
32
29
throw error(potentialMatch, "${DataFetcherResult::class.java.name} can only be used as a return type")
0 commit comments