Community
Participate
Working Groups
I20061003-0800 The doc for: org.eclipse.jdt.core.dom.rewrite.ASTRewrite.getListRewrite(ASTNode, ChildListPropertyDescriptor) states that @throws IllegalArgumentException ...if the property is not a node property... As I understand it an IAE should be thrown whenever 'node' does not have a StructuralProperty as descriped by 'property'. The implementation does not check that. Also an IAE should be thrown ... if the node is not part of this rewriter's AST... The implementation does not check that either. But it does check if 'property' is a list property. But 'property' is of type ChildListPropertyDescriptor and therefore always a list property.
Created attachment 51642 [details] proposed fix
fixed > 20080701
Verified for 3.5M1 using I20080805-1307