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.

Bug 88697 - Provide a method to create constructors
Summary: Provide a method to create constructors
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-06 12:20 UTC by Andrei Badea
Modified: 2007-01-17 10:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Badea 2006-11-06 12:20:44 UTC
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.
Comment 1 Pavel Flaska 2006-11-09 13:25:37 UTC
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.)
Comment 2 Andrei Badea 2006-11-10 09:22:38 UTC
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.
Comment 3 Pavel Flaska 2006-11-10 11:51:36 UTC
Good point, I'll add such a method.
Comment 4 Andrei Badea 2006-11-10 15:06:11 UTC
Thanks. Then I hope you won't mind that I'm reopening it.
Comment 5 Pavel Flaska 2006-11-10 15:16:27 UTC
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