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
primitive type array will be throw ClassCastException #163
when i use primitive type array will be throw ClassCastException
test code like this
def "completes value for an primitive type array"() {
given:
ExecutionContext executionContext = new ExecutionContext();
Field field = new Field()
def fieldType = new GraphQLList(Scalars.GraphQLLong)
long[] result = [1L]
when:
def executionResult = executionStrategy.completeValue(executionContext, fieldType, [field], result)
then:
executionResult.data == [1L]
}
and the exception like this
Exception in thread "main" java.lang.ClassCastException: [J cannot be cast to [Ljava.lang.Object;
Activity
bbakerman commentedon Sep 11, 2017
Fixed