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 85073 Details for
Bug 211718
[1.5][compiler] compiler error with nested enum in class using generics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
211718.txt (text/plain), 1.62 KB, created by
Philipe Mulet
on 2007-12-12 09:58:55 EST
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2007-12-12 09:58:55 EST
Size:
1.62 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.17 >diff -u -r1.17 SyntheticMethodBinding.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticMethodBinding.java 13 Nov 2007 13:12:34 -0000 1.17 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticMethodBinding.java 12 Dec 2007 14:57:23 -0000 >@@ -244,13 +244,14 @@ > this.selector = selector; > this.modifiers = ClassFileConstants.AccPublic | ClassFileConstants.AccStatic; > this.tagBits |= (TagBits.AnnotationResolved | TagBits.DeprecatedAnnotationResolved); >+ LookupEnvironment environment = declaringEnum.scope.environment(); > this.thrownExceptions = Binding.NO_EXCEPTIONS; > if (selector == TypeConstants.VALUES) { >- this.returnType = declaringEnum.scope.createArrayType(declaringEnum, 1); >+ this.returnType = environment.createArrayType(environment.convertToParameterizedType(declaringEnum), 1); > this.parameters = Binding.NO_PARAMETERS; > this.purpose = SyntheticMethodBinding.EnumValues; > } else if (selector == TypeConstants.VALUEOF) { >- this.returnType = declaringEnum; >+ this.returnType = environment.convertToParameterizedType(declaringEnum); > this.parameters = new TypeBinding[]{ declaringEnum.scope.getJavaLangString() }; > this.purpose = SyntheticMethodBinding.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 211718
:
84291
| 85073