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 41041 Details for
Bug 141155
[1.5][compiler] Enum valueOf(String) method should not be final
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_141155.txt (text/plain), 1.35 KB, created by
Olivier Thomann
on 2006-05-10 17:02:27 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-05-10 17:02:27 EDT
Size:
1.35 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticMethodBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticMethodBinding.java,v >retrieving revision 1.11 >diff -u -r1.11 SyntheticMethodBinding.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticMethodBinding.java 29 Mar 2006 02:45:26 -0000 1.11 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticMethodBinding.java 10 May 2006 21:05:12 -0000 >@@ -245,10 +245,12 @@ > this.tagBits |= TagBits.AnnotationResolved; > this.thrownExceptions = Binding.NO_EXCEPTIONS; > if (selector == TypeConstants.VALUES) { >+ this.modifiers = ClassFileConstants.AccFinal | ClassFileConstants.AccPublic | ClassFileConstants.AccStatic; > this.returnType = declaringEnum.scope.createArrayType(declaringEnum, 1); > this.parameters = Binding.NO_PARAMETERS; > this.kind = EnumValues; > } else if (selector == TypeConstants.VALUEOF) { >+ this.modifiers = ClassFileConstants.AccPublic | ClassFileConstants.AccStatic; > this.returnType = declaringEnum; > this.parameters = new TypeBinding[]{ declaringEnum.scope.getJavaLangString() }; > this.kind = EnumValueOf;
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 141155
:
41041
|
41049
|
41052