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 20997 Details for
Bug 94168
Java annotation is missing in EnumConstantDeclaration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD on ASTConverter
patch_94168.txt (text/plain), 1.55 KB, created by
Olivier Thomann
on 2005-05-11 15:04:08 EDT
(
hide
)
Description:
Apply on HEAD on ASTConverter
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-05-11 15:04:08 EDT
Size:
1.55 KB
patch
obsolete
>Index: ASTConverter.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java,v >retrieving revision 1.206 >diff -u -r1.206 ASTConverter.java >--- ASTConverter.java 25 Apr 2005 21:00:21 -0000 1.206 >+++ ASTConverter.java 11 May 2005 19:03:30 -0000 >@@ -1327,6 +1327,7 @@ > } else { > enumConstantDeclaration.setSourceRange(declarationSourceStart, declarationSourceEnd - declarationSourceStart + 1); > } >+ setModifiers(enumConstantDeclaration, enumConstant); > if (this.resolveBindings) { > recordNodes(enumConstantDeclaration, enumConstant); > recordNodes(typeName, enumConstant); >@@ -4239,6 +4240,20 @@ > this.setModifiers(enumDeclaration, enumDeclaration2.annotations); > } > >+ protected void setModifiers(EnumConstantDeclaration enumConstantDeclaration, org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration) { >+ switch(this.ast.apiLevel) { >+ case AST.JLS2_INTERNAL : >+ enumConstantDeclaration.internalSetModifiers(fieldDeclaration.modifiers & CompilerModifiers.AccJustFlag); >+ if (fieldDeclaration.annotations != null) { >+ enumConstantDeclaration.setFlags(enumConstantDeclaration.getFlags() | ASTNode.MALFORMED); >+ } >+ break; >+ case AST.JLS3 : >+ this.scanner.resetTo(fieldDeclaration.declarationSourceStart, fieldDeclaration.sourceStart); >+ this.setModifiers(enumConstantDeclaration, fieldDeclaration.annotations); >+ } >+ } >+ > /** > * @param fieldDeclaration > * @param fieldDecl
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 94168
: 20997