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 191148 Details for
Bug 339913
[compiler] Misleading error message for annotations inside a method body
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix + updated regression test
patch_339913.txt (text/plain), 3.64 KB, created by
Olivier Thomann
on 2011-03-14 12:48:56 EDT
(
hide
)
Description:
Proposed fix + updated regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2011-03-14 12:48:56 EDT
Size:
3.64 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties,v >retrieving revision 1.262.2.11 >diff -u -r1.262.2.11 messages.properties >--- compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties 10 Mar 2011 09:51:43 -0000 1.262.2.11 >+++ compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties 14 Mar 2011 16:47:17 -0000 >@@ -38,8 +38,8 @@ > 27 = Cannot use an expression of the type {0} as a valid enclosing instance > 28 = No enclosing instance of type {0} is available due to some intermediate constructor invocation > 29 = An anonymous class cannot subclass the final class {0} >-30 = The member annotation {0} can only be defined inside a static context >-31 = The member enum {0} cannot be local >+30 = The member annotation {0} can only be defined inside a top-level class or interface >+31 = The member enum {0} can only be defined inside a top-level class or interface > 32 = The member enum {0} must be defined inside a static member type > 33 = The type {0} is hiding the type {1} > >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java,v >retrieving revision 1.219.2.1 >diff -u -r1.219.2.1 AnnotationTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java 11 Feb 2011 15:17:16 -0000 1.219.2.1 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java 14 Mar 2011 16:47:20 -0000 >@@ -4747,7 +4747,7 @@ > "1. ERROR in X.java (at line 3)\n" + > " @interface Bar {\n" + > " ^^^\n" + >- "The member annotation Bar can only be defined inside a static context\n" + >+ "The member annotation Bar can only be defined inside a top-level class or interface\n" + > "----------\n"); > } > >Index: src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java,v >retrieving revision 1.155 >diff -u -r1.155 EnumTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java 9 Nov 2010 19:59:20 -0000 1.155 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java 14 Mar 2011 16:47:21 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2010 IBM Corporation and others. >+ * Copyright (c) 2000, 2011 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -2524,7 +2524,7 @@ > "1. ERROR in X.java (at line 3)\n" + > " enum E {}\n" + > " ^\n" + >- "The member enum E cannot be local\n" + >+ "The member enum E can only be defined inside a top-level class or interface\n" + > "----------\n"); > } > >@@ -2570,7 +2570,7 @@ > "1. ERROR in X.java (at line 4)\n" + > " enum E {}\n" + > " ^\n" + >- "The member enum E cannot be local\n" + >+ "The member enum E 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 339913
: 191148