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 22078 Details for
Bug 97459
CCE during reconcile and AST creation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_97466_test.txt (text/plain), 1.82 KB, created by
Olivier Thomann
on 2005-05-31 13:50:08 EDT
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-05-31 13:50:08 EDT
Size:
1.82 KB
patch
obsolete
>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.98 >diff -u -r1.98 AnnotationTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java 31 May 2005 15:34:03 -0000 1.98 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java 31 May 2005 17:50:16 -0000 >@@ -37,7 +37,7 @@ > // All specified tests which does not belong to the class are skipped... > static { > // TESTS_NAMES = new String[] { "test127" }; >-// TESTS_NUMBERS = new int[] { 143 }; >+// TESTS_NUMBERS = new int[] { 148 }; > // TESTS_RANGE = new int[] { 21, 50 }; > } > public static Test suite() { >@@ -4588,7 +4588,7 @@ > " ^^^\n" + > "Cannot reference a field before it is defined\n" + > "----------\n"); >- } >+ } > //https://bugs.eclipse.org/bugs/show_bug.cgi?id=96631 > public void test146() { > this.runConformTest( >@@ -4619,4 +4619,25 @@ > options > ); > } >+ >+ //https://bugs.eclipse.org/bugs/show_bug.cgi?id=97466 >+ public void test148() { >+ this.runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X {\n" + >+ " private static void foo() {\n" + >+ " @interface Bar {\n" + >+ " public String bar = \"BUG\";\n" + >+ " }\n" + >+ " }\n" + >+ "}", >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 3)\n" + >+ " @interface Bar {\n" + >+ " ^^^\n" + >+ "The member annotation Bar can only be defined inside a top-level class or interface\n" + >+ "----------\n"); >+ } > }
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 97459
:
22076
| 22078