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 18781 Details for
Bug 87998
[1.5][compiler] Enum constants generate warnings about synthetic constructor access
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on ProblemReporter in HEAD
patch_87998.txt (text/plain), 1.16 KB, created by
Olivier Thomann
on 2005-03-14 19:51:31 EST
(
hide
)
Description:
Apply on ProblemReporter in HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-03-14 19:51:31 EST
Size:
1.16 KB
patch
obsolete
>Index: ProblemReporter.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java,v >retrieving revision 1.231 >diff -u -r1.231 ProblemReporter.java >--- ProblemReporter.java 28 Feb 2005 06:36:17 -0000 1.231 >+++ ProblemReporter.java 15 Mar 2005 00:49:00 -0000 >@@ -3915,7 +3915,8 @@ > MethodBinding method, > ASTNode location) { > >- if (method.isConstructor()) >+ if (method.isConstructor()) { >+ if (method.declaringClass.isEnum()) return; > this.handle( > IProblem.NeedToEmulateConstructorAccess, > new String[] { >@@ -3928,7 +3929,7 @@ > }, > location.sourceStart, > location.sourceEnd); >- else >+ } else { > this.handle( > IProblem.NeedToEmulateMethodAccess, > new String[] { >@@ -3942,7 +3943,8 @@ > typesAsString(method.isVarargs(), method.parameters, true) > }, > location.sourceStart, >- location.sourceEnd); >+ location.sourceEnd); >+ } > } > public void nestedClassCannotDeclareInterface(TypeDeclaration typeDecl) { > String[] arguments = new String[] {new String(typeDecl.name)};
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 87998
: 18781