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
+8-8
Original file line number
Diff line number
Diff line change
@@ -333,7 +333,7 @@ public void testCompileStatic12() {
333
333
"1. ERROR in Main.groovy (at line 3)\n" +
334
334
"\tdef list = new LinkedList<String>([1,2,3])\n" +
335
335
"\t ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
336
-
"Groovy:[Static type checking] - Cannot call java.util.LinkedList#<init>(java.util.Collection<? extends java.lang.String>) with arguments [java.util.List<java.lang.Integer>] \n" +
336
+
"Groovy:[Static type checking] - Cannot call java.util.LinkedList#<init>(java.util.Collection<? extends java.lang.String>) with arguments [java.util.List<java.lang.Integer>] \n" +
337
337
"----------\n");
338
338
}
339
339
@@ -1744,7 +1744,7 @@ public void testCompileStatic8310() {
1744
1744
"1. ERROR in Main.groovy (at line 6)\n" +
1745
1745
"\tbar {\n" +
1746
1746
"\t^\n" +
1747
-
"Groovy:[Static type checking] - Cannot find matching method Main#bar(groovy.lang.Closure<java.util.List>). Please check if the declared type is correct and if the method exists.\n" +
1747
+
"Groovy:[Static type checking] - Cannot find matching method Main#bar(groovy.lang.Closure<java.util.List<java.lang.Integer>>). Please check if the declared type is correct and if the method exists.\n" +
1748
1748
"----------\n");
1749
1749
}
1750
1750
@@ -2004,7 +2004,7 @@ public void testCompileStatic8609c() {
2004
2004
"1. ERROR in A.groovy (at line 11)\n" +
2005
2005
"\tassert record.is(a.getFirstRecord(list))\n" +
2006
2006
"\t ^^^^^^^^^^^^^^^^^^^^^^\n" +
2007
-
"Groovy:[Static type checking] - Cannot find matching method A#getFirstRecord(java.util.ArrayList <TreeMap>). Please check if the declared type is correct and if the method exists.\n" +
2007
+
"Groovy:[Static type checking] - Cannot find matching method A#getFirstRecord(java.util.ArrayList<java.util.TreeMap<java.lang.String, java.lang.Integer>>). Please check if the declared type is correct and if the method exists.\n" +
2008
2008
"----------\n");
2009
2009
}
2010
2010
@@ -2034,7 +2034,7 @@ public void testCompileStatic8609d() {
2034
2034
"1. ERROR in A.groovy (at line 11)\n" +
2035
2035
"\tassert record.is(a.getFirstRecord(list))\n" +
2036
2036
"\t ^^^^^^^^^^^^^^^^^^^^^^\n" +
2037
-
"Groovy:[Static type checking] - Cannot find matching method A#getFirstRecord(java.util.ArrayList <HashMap>). Please check if the declared type is correct and if the method exists.\n" +
2037
+
"Groovy:[Static type checking] - Cannot find matching method A#getFirstRecord(java.util.ArrayList<java.util.HashMap<java.lang.String, java.lang.Long>>). Please check if the declared type is correct and if the method exists.\n" +
2038
2038
"----------\n");
2039
2039
}
2040
2040
@@ -2064,7 +2064,7 @@ public void testCompileStatic8609e() {
2064
2064
"1. ERROR in A.groovy (at line 11)\n" +
2065
2065
"\tassert record.is(a.getFirstRecord(list))\n" +
2066
2066
"\t ^^^^^^^^^^^^^^^^^^^^^^\n" +
2067
-
"Groovy:[Static type checking] - Cannot find matching method A#getFirstRecord(java.util.ArrayList <HashMap>). Please check if the declared type is correct and if the method exists.\n" +
2067
+
"Groovy:[Static type checking] - Cannot find matching method A#getFirstRecord(java.util.ArrayList<java.util.HashMap<java.lang.StringBuffer, java.lang.Integer>>). Please check if the declared type is correct and if the method exists.\n" +
2068
2068
"----------\n");
2069
2069
}
2070
2070
@@ -4551,7 +4551,7 @@ public void testCompileStatic9338() {
4551
4551
"1. ERROR in Main.groovy (at line 7)\n" +
4552
4552
"\tmeth(c)\n" +
4553
4553
"\t^^^^^^^\n" +
4554
-
"Groovy:[Static type checking] - Cannot call Main#meth(java.lang.Class<? extends java.lang.CharSequence>) with arguments [java.lang.Class<?>] \n" +
4554
+
"Groovy:[Static type checking] - Cannot call Main#meth(java.lang.Class<? extends java.lang.CharSequence>) with arguments [java.lang.Class<?>] \n" +
4555
4555
"----------\n");
4556
4556
}
4557
4557
@@ -4577,7 +4577,7 @@ public void testCompileStatic9338a() {
4577
4577
"1. ERROR in Main.groovy (at line 7)\n" +
4578
4578
"\tmeth(c)\n" +
4579
4579
"\t^^^^^^^\n" +
4580
-
"Groovy:[Static type checking] - Cannot call Main#meth(java.lang.Class<? super java.lang.CharSequence>) with arguments [java.lang.Class<?>] \n" +
4580
+
"Groovy:[Static type checking] - Cannot call Main#meth(java.lang.Class<? super java.lang.CharSequence>) with arguments [java.lang.Class<?>] \n" +
4581
4581
"----------\n");
4582
4582
}
4583
4583
@@ -5751,7 +5751,7 @@ public void testCompileStatic9883() {
5751
5751
"\tjava.util.function.Supplier<String> p = {\n" +
5752
5752
"\t ^\n" +
5753
5753
"Groovy:[Static type checking] - Incompatible generic argument types. " +
5754
-
"Cannot assign java.util.function.Supplier<java.util.UUID> to: java.util.function.Supplier <String>\n" +
5754
+
"Cannot assign java.util.function.Supplier<java.util.UUID> to: java.util.function.Supplier<java.lang.String>\n" +
Copy file name to clipboardExpand all lines: base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/xform/TypeCheckedTests.java
+31-31
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ public void testTypeChecked3() {
103
103
};
104
104
//@formatter:on
105
105
106
-
runConformTest(sources, "");
106
+
runConformTest(sources);
107
107
}
108
108
109
109
@Test
@@ -234,7 +234,7 @@ public void testTypeChecked10() {
234
234
};
235
235
//@formatter:on
236
236
237
-
runConformTest(sources, "");
237
+
runConformTest(sources);
238
238
}
239
239
240
240
@Test
@@ -254,7 +254,7 @@ public void testTypeChecked6232() {
254
254
};
255
255
//@formatter:on
256
256
257
-
runConformTest(sources, "");
257
+
runConformTest(sources);
258
258
}
259
259
260
260
@Test
@@ -338,7 +338,7 @@ public void testTypeChecked6912() {
338
338
};
339
339
//@formatter:on
340
340
341
-
runConformTest(sources, "");
341
+
runConformTest(sources);
342
342
}
343
343
344
344
@Test
@@ -359,7 +359,7 @@ public void testTypeChecked6912a() {
359
359
};
360
360
//@formatter:on
361
361
362
-
runConformTest(sources, "");
362
+
runConformTest(sources);
363
363
}
364
364
365
365
@Test
@@ -375,13 +375,13 @@ public void testTypeChecked6938() {
@@ -420,7 +420,7 @@ public void testTypeChecked7106() {
420
420
};
421
421
//@formatter:on
422
422
423
-
runConformTest(sources, "");
423
+
runConformTest(sources);
424
424
}
425
425
426
426
@Test
@@ -437,7 +437,7 @@ public void testTypeChecked7128() {
437
437
};
438
438
//@formatter:on
439
439
440
-
runConformTest(sources, "");
440
+
runConformTest(sources);
441
441
}
442
442
443
443
@Test
@@ -462,7 +462,7 @@ public void testTypeChecked7128a() {
462
462
};
463
463
//@formatter:on
464
464
465
-
runConformTest(sources, "");
465
+
runConformTest(sources);
466
466
}
467
467
468
468
@Test
@@ -482,7 +482,7 @@ public void testTypeChecked7128b() {
482
482
};
483
483
//@formatter:on
484
484
485
-
runConformTest(sources, "");
485
+
runConformTest(sources);
486
486
}
487
487
}
488
488
@@ -504,7 +504,7 @@ public void testTypeChecked7128c() {
504
504
"1. ERROR in Main.groovy (at line 3)\n" +
505
505
"\tMap<String,Integer> map = [1:2]\n" +
506
506
"\t ^^^^^\n" +
507
-
"Groovy:[Static type checking] - Incompatible generic argument types. Cannot assign java.util.LinkedHashMap<java.lang.Integer, java.lang.Integer> to: java.util.Map <String, Integer>\n" +
507
+
"Groovy:[Static type checking] - Incompatible generic argument types. Cannot assign java.util.LinkedHashMap<java.lang.Integer, java.lang.Integer> to: java.util.Map<java.lang.String, java.lang.Integer>\n" +
508
508
"----------\n");
509
509
}
510
510
@@ -527,7 +527,7 @@ public void testTypeChecked7128d() {
527
527
};
528
528
//@formatter:on
529
529
530
-
runConformTest(sources, "");
530
+
runConformTest(sources);
531
531
}
532
532
533
533
@Test
@@ -545,7 +545,7 @@ public void testTypeChecked7274() {
545
545
};
546
546
//@formatter:on
547
547
548
-
runConformTest(sources, "");
548
+
runConformTest(sources);
549
549
}
550
550
551
551
@Test
@@ -624,7 +624,7 @@ public void testTypeChecked7945() {
624
624
"1. ERROR in Test.groovy (at line 12)\n" +
625
625
"\tsuper(Integer, String)\n" +
626
626
"\t^^^^^^^^^^^^^^^^^^^^^^\n" +
627
-
"Groovy:[Static type checking] - Cannot call A#<init>(java.lang.Class <String>, java.lang.Class <Integer>) with arguments [java.lang.Class<java.lang.Integer>, java.lang.Class<java.lang.String>] \n" +
627
+
"Groovy:[Static type checking] - Cannot call A#<init>(java.lang.Class<java.lang.String>, java.lang.Class<java.lang.Integer>) with arguments [java.lang.Class<java.lang.Integer>, java.lang.Class<java.lang.String>] \n" +
628
628
"----------\n");
629
629
}
630
630
@@ -739,7 +739,7 @@ public void testTypeChecked8909() {
739
739
};
740
740
//@formatter:on
741
741
742
-
runConformTest(sources, "");
742
+
runConformTest(sources);
743
743
}
744
744
745
745
@Test
@@ -762,7 +762,7 @@ public void testTypeChecked8909a() {
762
762
"1. ERROR in Main.groovy (at line 5)\n" +
763
763
"\tm([1,2,3])\n" +
764
764
"\t^^^^^^^^^^\n" +
765
-
"Groovy:[Static type checking] - Cannot find matching method Main#m(java.util.List<java.lang.Integer>). Please check if the declared type is correct and if the method exists.\n" +
765
+
"Groovy:[Static type checking] - Cannot find matching method Main#m(java.util.List<java.lang.Integer>). Please check if the declared type is correct and if the method exists.\n" +
766
766
"----------\n");
767
767
}
768
768
@@ -862,12 +862,12 @@ public void testTypeChecked8984() {
862
862
"1. ERROR in Main.groovy (at line 4)\n" +
863
863
"\tCharSequence[] one = m()\n" +
864
864
"\t ^^^\n" +
865
-
"Groovy:[Static type checking] - Cannot assign value of type java.util.List<? super java.lang.CharSequence> to variable of type java.lang.CharSequence[]\n" +
865
+
"Groovy:[Static type checking] - Cannot assign value of type java.util.List<? super java.lang.CharSequence> to variable of type java.lang.CharSequence[]\n" +
866
866
"----------\n" +
867
867
"2. ERROR in Main.groovy (at line 5)\n" +
868
868
"\tCharSequence[] two = set\n" +
869
869
"\t ^^^\n" +
870
-
"Groovy:[Static type checking] - Cannot assign value of type java.util.Set<? super java.lang.CharSequence> to variable of type java.lang.CharSequence[]\n" +
870
+
"Groovy:[Static type checking] - Cannot assign value of type java.util.Set<? super java.lang.CharSequence> to variable of type java.lang.CharSequence[]\n" +
871
871
"----------\n");
872
872
}
873
873
@@ -891,12 +891,12 @@ public void testTypeChecked8984a() {
891
891
"1. ERROR in Main.groovy (at line 4)\n" +
892
892
"\tNumber[] one = m()\n" +
893
893
"\t ^^^\n" +
894
-
"Groovy:[Static type checking] - Cannot assign value of type java.util.List <String> to variable of type java.lang.Number[]\n" +
894
+
"Groovy:[Static type checking] - Cannot assign value of type java.util.List<java.lang.String> to variable of type java.lang.Number[]\n" +
895
895
"----------\n" +
896
896
"2. ERROR in Main.groovy (at line 5)\n" +
897
897
"\tNumber[] two = set\n" +
898
898
"\t ^^^\n" +
899
-
"Groovy:[Static type checking] - Cannot assign value of type java.util.Set <String> to variable of type java.lang.Number[]\n" +
899
+
"Groovy:[Static type checking] - Cannot assign value of type java.util.Set<java.lang.String> to variable of type java.lang.Number[]\n" +
900
900
"----------\n");
901
901
}
902
902
@@ -1474,7 +1474,7 @@ public void testTypeChecked9953() {
1474
1474
};
1475
1475
//@formatter:on
1476
1476
1477
-
runConformTest(sources, "");
1477
+
runConformTest(sources);
1478
1478
}
1479
1479
1480
1480
@Test
@@ -1496,7 +1496,7 @@ public void testTypeChecked9956() {
1496
1496
};
1497
1497
//@formatter:on
1498
1498
1499
-
runConformTest(sources, "");
1499
+
runConformTest(sources);
1500
1500
}
1501
1501
1502
1502
@Test
@@ -1520,7 +1520,7 @@ public void testTypeChecked9956a() {
1520
1520
};
1521
1521
//@formatter:on
1522
1522
1523
-
runConformTest(sources, "");
1523
+
runConformTest(sources);
1524
1524
}
1525
1525
1526
1526
@Test
@@ -1544,7 +1544,7 @@ public void testTypeChecked9956b() {
1544
1544
"1. ERROR in Main.groovy (at line 7)\n" +
1545
1545
"\tA<String> ax = new C<Number>()\n" +
1546
1546
"\t ^^^^^^^^^^^^^^^\n" +
1547
-
"Groovy:[Static type checking] - Incompatible generic argument types. Cannot assign C <Number> to: A <String>\n" +
1547
+
"Groovy:[Static type checking] - Incompatible generic argument types. Cannot assign C<java.lang.Number> to: A<java.lang.String>\n" +
1548
1548
"----------\n");
1549
1549
}
1550
1550
@@ -1621,7 +1621,7 @@ public void testTypeChecked9970() {
1621
1621
};
1622
1622
//@formatter:on
1623
1623
1624
-
runConformTest(sources, "");
1624
+
runConformTest(sources);
1625
1625
}
1626
1626
1627
1627
@Test
@@ -1744,7 +1744,7 @@ public void testTypeChecked9972c() {
1744
1744
};
1745
1745
//@formatter:on
1746
1746
1747
-
runConformTest(sources, "");
1747
+
runConformTest(sources);
1748
1748
}
1749
1749
1750
1750
@Test
@@ -1921,7 +1921,7 @@ public void testTypeChecked9996() {
1921
1921
};
1922
1922
//@formatter:on
1923
1923
1924
-
runConformTest(sources, "");
1924
+
runConformTest(sources);
1925
1925
}
1926
1926
1927
1927
@Test
@@ -1938,7 +1938,7 @@ public void testTypeChecked9997() {
1938
1938
};
1939
1939
//@formatter:on
1940
1940
1941
-
runConformTest(sources, "");
1941
+
runConformTest(sources);
1942
1942
}
1943
1943
1944
1944
@Test
@@ -2031,7 +2031,7 @@ public void testTypeChecked10006() {
2031
2031
};
2032
2032
//@formatter:on
2033
2033
2034
-
runConformTest(sources, "");
2034
+
runConformTest(sources);
2035
2035
}
2036
2036
2037
2037
@Test
@@ -2134,7 +2134,7 @@ public void testTypeChecked10011() {
0 commit comments