Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 26602 Details for
Bug 108263
[1.5][compiler] Constants initilialization doesn't work inside Annotation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_108263_tests_compiler.txt (text/plain), 2.38 KB, created by
Olivier Thomann
on 2005-08-29 17:00:23 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-08-29 17:00:23 EDT
Size:
2.38 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/parser/AnnotationDietRecoveryTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/AnnotationDietRecoveryTest.java,v >retrieving revision 1.6 >diff -u -r1.6 AnnotationDietRecoveryTest.java >--- src/org/eclipse/jdt/core/tests/compiler/parser/AnnotationDietRecoveryTest.java 9 Jun 2005 14:03:39 -0000 1.6 >+++ src/org/eclipse/jdt/core/tests/compiler/parser/AnnotationDietRecoveryTest.java 29 Aug 2005 20:51:15 -0000 >@@ -254,6 +254,8 @@ > "public @interface X {\n" + > " {\n" + > " }\n" + >+ " <clinit>() {\n" + >+ " }\n" + > "}\n"; > > String expectedDietPlusBodyUnitToString = >Index: src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java,v >retrieving revision 1.110 >diff -u -r1.110 AnnotationTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java 25 Jul 2005 14:29:31 -0000 1.110 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java 29 Aug 2005 20:51:15 -0000 >@@ -984,12 +984,12 @@ > " int[] value();\n" + > "}\n" > }, >- "----------\n" + >- "1. ERROR in X.java (at line 2)\n" + >- " int[] tab;\n" + >- " ^^^\n" + >- "The annotation field X.tab must be initialized with a constant expression\n" + >- "----------\n"); >+ "----------\n" + >+ "1. ERROR in X.java (at line 2)\n" + >+ " int[] tab;\n" + >+ " ^^^\n" + >+ "The blank final field tab may not have been initialized\n" + >+ "----------\n"); > } > > // check annotation array field initializer >@@ -1031,12 +1031,12 @@ > " int value;\n" + > "}\n" > }, >- "----------\n" + >- "1. ERROR in X.java (at line 2)\r\n" + >- " int value;\r\n" + >- " ^^^^^\n" + >- "The annotation field X.value must be initialized with a constant expression\n" + >- "----------\n"); >+ "----------\n" + >+ "1. ERROR in X.java (at line 2)\n" + >+ " int value;\n" + >+ " ^^^^^\n" + >+ "The blank final field value may not have been initialized\n" + >+ "----------\n"); > } > > // check annotation field initializer
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 108263
:
26601
| 26602