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 50217 Details for
Bug 157333
calling delete on enum constant deletes entire Enum
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_157333.txt (text/plain), 1000 bytes, created by
Olivier Thomann
on 2006-09-14 20:23:31 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-09-14 20:23:31 EDT
Size:
1000 bytes
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/SourceField.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceField.java,v >retrieving revision 1.45 >diff -u -r1.45 SourceField.java >--- model/org/eclipse/jdt/internal/core/SourceField.java 29 Mar 2006 03:08:47 -0000 1.45 >+++ model/org/eclipse/jdt/internal/core/SourceField.java 15 Sep 2006 00:18:26 -0000 >@@ -33,8 +33,12 @@ > public ASTNode findNode(org.eclipse.jdt.core.dom.CompilationUnit ast) { > // For field declarations, a variable declaration fragment is returned > // Return the FieldDeclaration instead >+ // For enum constant declaration, we return the node directly > ASTNode node = super.findNode(ast); > if (node == null) return null; >+ if (node.getNodeType() == ASTNode.ENUM_CONSTANT_DECLARATION) { >+ return node; >+ } > return node.getParent(); > } > /**
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 157333
: 50217 |
50218