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
Copy file name to clipboardExpand all lines: base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/xform/StaticCompilationTests.java
+26-1
Original file line number
Diff line number
Diff line change
@@ -5649,7 +5649,7 @@ public void testCompileStatic9737b() {
5649
5649
"@groovy.transform.CompileStatic\n" +
5650
5650
"class C extends p.A {\n" +
5651
5651
" void test() {\n" +
5652
-
" m('')\n" + // VerifyError: Bad access to protected data in invokevirtual
5652
+
" m('')\n" + // IncompatibleClassChangeError: Found class but interface was expected
5653
5653
" }\n" +
5654
5654
"}\n" +
5655
5655
"new C().test()\n",
@@ -6597,4 +6597,29 @@ public void testCompileStatic10319() {
6597
6597
6598
6598
runConformTest(sources, "p.C([1])");
6599
6599
}
6600
+
6601
+
@Test
6602
+
publicvoidtestCompileStatic10375() {
6603
+
assumeTrue(isParrotParser());
6604
+
6605
+
//@formatter:off
6606
+
String[] sources = {
6607
+
"Main.groovy",
6608
+
"import java.util.function.Supplier\n" +
6609
+
"@groovy.transform.CompileStatic\n" +
6610
+
"class C {\n" +
6611
+
" private String getX() {\n" +
6612
+
" return 'works'\n" +
6613
+
" }\n" +
6614
+
" void test() {\n" +
6615
+
" Supplier<String> s = () -> x\n" + // GroovyCastException
0 commit comments