This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When I am adding a new method to class I get the following IAE.
Created attachment 41100 [details] IAE
I am adding a new method to empty class ElementHandle<ExecutableElement> handle = ...; ExecutableElement elm = handle.resolve(wc); Tree tree = SourceUtils.treeFor(wc, elm); List<Tree> members = new ArrayList<Tree>(); members.add(tree); ... ClassTree newClassTree = make.Class( classTree.getModifiers(), classTree.getSimpleName(), newTypeParams, superClass, implementsList, members); Here is the debugger output. old class tree: public class NewClassEx { public NewClassEx() { super(); } } new class tree: public class NewClassEx extends newpackage.NewSuperClass { public void public_method() { } }
Honza said it is no longer reproducible. IMO revision 1.118 fixed it. ---------------------------- revision 1.118 date: 2007/04/18 14:44:49; author: pflaska; state: Exp; lines: +19 -37 Removed obsolete method and its usages. Clean-up. ----------------------------
Yes it works now. I guess 6.0M9 is the proper target milestone.