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/basic/AnnotationsTests.java
+6-11
Original file line number
Diff line number
Diff line change
@@ -697,7 +697,7 @@ public void testCharLiteralAttributeValue() {
697
697
698
698
"Main.groovy",
699
699
"class Main {\n" +
700
-
" @Separator((char)';')\n" +
700
+
" @Separator(';')\n" +
701
701
" String tokens\n" +
702
702
"}\n",
703
703
};
@@ -709,14 +709,9 @@ public void testCharLiteralAttributeValue() {
709
709
runNegativeTest(sources,
710
710
"----------\n" +
711
711
"1. ERROR in Main.groovy (at line 2)\n" +
712
-
"\t@Separator((char)';')\n" +
713
-
"\t ^^^^^^^^^\n" +
714
-
"Groovy:Expected '(char) ;' to be an inline constant of type char in @Separator\n" +
715
-
"----------\n" +
716
-
"2. ERROR in Main.groovy (at line 2)\n" +
717
-
"\t@Separator((char)';')\n" +
718
-
"\t ^^^^^^^^^\n" +
719
-
"Groovy:Attribute 'value' should have type 'java.lang.Character'; but found type 'java.lang.Object' in @Separator\n" +
712
+
"\t@Separator(';')\n" +
713
+
"\t ^^^\n" +
714
+
"Groovy:Attribute 'value' should have type 'java.lang.Character'; but found type 'java.lang.String' in @Separator\n" +
720
715
"----------\n");
721
716
}
722
717
}
@@ -2636,7 +2631,7 @@ public void testAnnotationsTargetType13() {
Copy file name to clipboardExpand all lines: base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/basic/ErrorRecoveryTests.java
+7-7
Original file line number
Diff line number
Diff line change
@@ -372,7 +372,7 @@ public void testParsingRecovery_IncompleteAnnotation10() {
372
372
//@formatter:off
373
373
String[] sources = {
374
374
"X.groovy",
375
-
"@A(foo='1',)\n" +
375
+
"@A(foo=\"1\",)\n" +
376
376
"class X {\n" +
377
377
"}\n",
378
378
@@ -387,7 +387,7 @@ public void testParsingRecovery_IncompleteAnnotation10() {
387
387
runNegativeTest(sources,
388
388
"----------\n" +
389
389
"1. ERROR in X.groovy (at line 1)\n" +
390
-
"\t@A(foo='1',)\n" +
390
+
"\t@A(foo=\"1\",)\n" +
391
391
"\t^^\n" +
392
392
"Groovy:No explicit/default value found for annotation attribute 'bar' in @A\n" +
393
393
"----------\n");
@@ -404,7 +404,7 @@ public void testParsingRecovery_IncompleteAnnotation11() {
404
404
//@formatter:off
405
405
String[] sources = {
406
406
"X.groovy",
407
-
"@A(foo=['1','2'],)\n" +
407
+
"@A(foo=[\"1\",\"2\"],)\n" +
408
408
"class X {\n" +
409
409
"}\n",
410
410
@@ -419,7 +419,7 @@ public void testParsingRecovery_IncompleteAnnotation11() {
419
419
runNegativeTest(sources,
420
420
"----------\n" +
421
421
"1. ERROR in X.groovy (at line 1)\n" +
422
-
"\t@A(foo=['1','2'],)\n" +
422
+
"\t@A(foo=[\"1\",\"2\"],)\n" +
423
423
"\t^^\n" +
424
424
"Groovy:No explicit/default value found for annotation attribute 'bar' in @A\n" +
425
425
"----------\n");
@@ -436,7 +436,7 @@ public void testParsingRecovery_IncompleteAnnotation12() {
436
436
//@formatter:off
437
437
String[] sources = {
438
438
"X.groovy",
439
-
"@A(foo='1', b)\n" +
439
+
"@A(foo=\"1\", b)\n" +
440
440
"class X {\n" +
441
441
"}\n",
442
442
@@ -454,7 +454,7 @@ public void testParsingRecovery_IncompleteAnnotation12() {
454
454
"The attribute b is undefined for the annotation type A\n" +
455
455
"----------\n" +
456
456
"2. ERROR in X.groovy (at line 1)\n" +
457
-
"\t@A(foo='1', b)\n" +
457
+
"\t@A(foo=\"1\", b)\n" +
458
458
"\t^^\n" +
459
459
"Groovy:No explicit/default value found for annotation attribute 'bar' in @A\n" +
460
460
"----------\n");
@@ -471,7 +471,7 @@ public void testParsingRecovery_IncompleteAnnotation13() {
Copy file name to clipboardExpand all lines: base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/xform/NamedVariantTests.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ public void testNamedVariant2() {
62
62
"import groovy.transform.*\n" +
63
63
"\n" +
64
64
"@NamedVariant\n" +
65
-
"String m(@NamedDelegate Color color, @NamedParam(value='a', required=true) int alpha) {\n" +
65
+
"String m(@NamedDelegate Color color, @NamedParam(value=\"a\", required=true) int alpha) {\n" +
66
66
" return [color, alpha].join(' ')\n" +
67
67
"}\n" +
68
68
"\n" +
@@ -84,7 +84,7 @@ public void testNamedVariant3() {
84
84
"import groovy.transform.*\n" +
85
85
"\n" +
86
86
"@NamedVariant\n" +
87
-
"String m(@NamedDelegate Color color, @NamedParam(value='a', type=Number) alpha) {\n" +
87
+
"String m(@NamedDelegate Color color, @NamedParam(value=\"a\", type=Number) alpha) {\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
+3-3
Original file line number
Diff line number
Diff line change
@@ -446,7 +446,7 @@ public void testTypeChecked19() {
Copy file name to clipboardExpand all lines: base/org.eclipse.jdt.groovy.core/src/org/codehaus/jdt/groovy/internal/compiler/ast/GroovyCompilationUnitDeclaration.java
0 commit comments