Skip to content

Commit a05a319

Browse files
committed
Ignore test when run on Java version > 11
1 parent d46e247 commit a05a319

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/main/java/graphql/Contract.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717
@Documented
1818
@Target(ElementType.METHOD)
19+
@Internal
1920
public @interface Contract {
2021

2122
/**

src/test/groovy/graphql/schema/fetching/LambdaFetchingSupportTest.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import graphql.Scalars
44
import graphql.schema.GraphQLFieldDefinition
55
import graphql.schema.PropertyDataFetcher
66
import graphql.util.javac.DynamicJavacSupport
7+
import spock.lang.IgnoreIf
78
import spock.lang.Specification
89

910
class LambdaFetchingSupportTest extends Specification {
@@ -150,6 +151,7 @@ class LambdaFetchingSupportTest extends Specification {
150151
return GraphQLFieldDefinition.newFieldDefinition().name(fldName).type(Scalars.GraphQLString).build()
151152
}
152153

154+
@IgnoreIf({ System.getProperty("java.version").split('\\.')[0] as Integer > 11 })
153155
def "different class loaders induce certain behaviours"() {
154156
String sourceCode = '''
155157
package com.dynamic;

0 commit comments

Comments
 (0)