Skip to content
Permalink
Browse files
CharSequence#compare(CharSequence,CharSequence) is JDK 11+
  • Loading branch information
eric-milles committed May 21, 2022
1 parent c40dba6 commit 3edc345b04c050a8d85c316c470a8473306e4b5b
Showing 1 changed file with 3 additions and 0 deletions.
@@ -21,6 +21,7 @@ package groovy.transform.stc
import org.junit.Test

import static groovy.test.GroovyAssert.assertScript
import static groovy.test.GroovyAssert.isAtLeastJdk
import static groovy.test.GroovyAssert.shouldFail

final class MethodReferenceTest {
@@ -169,6 +170,8 @@ final class MethodReferenceTest {
test()
'''

if (!isAtLeastJdk('11.0')) return

assertScript shell, '''
@CompileStatic
void test() {

0 comments on commit 3edc345

Please sign in to comment.