Skip to content

Commit 91b7299

Browse files
committed
First failed simple attempt of trying to support generic return types
1 parent 887a259 commit 91b7299

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/com/coxautodev/graphql/tools/TypeClassMatcher.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import graphql.language.TypeDefinition
88
import graphql.language.TypeName
99
import graphql.schema.idl.ScalarInfo
1010
import org.apache.commons.lang3.reflect.TypeUtils
11+
import sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl
1112
import java.lang.reflect.ParameterizedType
1213
import java.util.*
1314

@@ -103,7 +104,7 @@ internal class TypeClassMatcher(private val definitionsByName: Map<String, TypeD
103104
private fun isListType(realType: ParameterizedType, potentialMatch: PotentialMatch) = isListType(realType, potentialMatch.generic)
104105

105106
private fun requireRawClass(type: JavaType): Class<out Any> {
106-
// if (type is ParameterizedType) {
107+
// if (type is ParameterizedTypeImpl) {
107108
// return type.rawType.javaClass
108109
// }
109110
// if (type !is Class<*>) {

0 commit comments

Comments
 (0)