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 51642 Details for
Bug 160217
[ast rewrite] ASTRewrite#getListRewrite does not fullfill spec
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
proposed fix
fix_160217.txt (text/plain), 1.17 KB, created by
Benno Baumgartner
on 2006-10-09 10:45:51 EDT
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Benno Baumgartner
Created:
2006-10-09 10:45:51 EDT
Size:
1.17 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/core/dom/rewrite/ASTRewrite.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ASTRewrite.java,v >retrieving revision 1.29 >diff -u -r1.29 ASTRewrite.java >--- dom/org/eclipse/jdt/core/dom/rewrite/ASTRewrite.java 23 Jun 2006 13:44:54 -0000 1.29 >+++ dom/org/eclipse/jdt/core/dom/rewrite/ASTRewrite.java 9 Oct 2006 14:48:14 -0000 >@@ -437,9 +437,18 @@ > if (node == null || property == null) { > throw new IllegalArgumentException(); > } >- validateIsListProperty(property); >+ >+ if (node.getAST() != getAST()) >+ throw new IllegalArgumentException(); >+ >+ List list= node.structuralPropertiesForType(); >+ for (Iterator iterator= list.iterator(); iterator.hasNext();) { >+ StructuralPropertyDescriptor desc= (StructuralPropertyDescriptor)iterator.next(); >+ if (desc.equals(property)) >+ return new ListRewrite(this, node, property); >+ } > >- return new ListRewrite(this, node, property); >+ throw new IllegalArgumentException(); > } > > /**
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 160217
: 51642