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.
Currently the user has to use TreeMaker.Method() and pass "<init>" as the method name, which is not intuitive. Please provide a special method for constructors, not requiring the method name and the return type.
Already fixed. revision 1.4 date: 2006/11/03 10:51:42; author: pflaska; state: Exp; lines: +18 -0 Added method for Constructor creation. Bothering for users to provide <init> name and null return type. ConstructorTest rewritten to call and test this method. Correct API usage used now in Constructor test. (Visitor removed.)
Probably not that important, but it would be nice and consistent with TreeMaker.Method() to also have a TreeMaker.Constructor() method taking the body text as a string.
Good point, I'll add such a method.
Thanks. Then I hope you won't mind that I'm reopening it.
I have already checked-in the change, I ommited to write down the log. /cvs/java/source/src/org/netbeans/api/java/source/TreeMaker.java,v <-- TreeMaker.java new revision: 1.5; previous revision: 1.4 done