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 56057 - Missing superclass in the source code of Bean Form
Summary: Missing superclass in the source code of Bean Form
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 13:57 UTC by Jaromir Uhrik
Modified: 2007-09-26 09:14 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 Jaromir Uhrik 2005-03-07 13:57:48 UTC
[200503061900; jdk1.5.0_02-b07]
1.In Explorer select in popup menu New|File/Folder...
2.Select Java GUI Forms|Bean Form
3.Press Next
4.Type superclass e.g. javax.swing.JLabel
5.Press Finish butoon
6.In the source code there is the declaration as
following (no superclass follows the extends
keyword!):
public class MyBeanForm extends  {...
Comment 1 Jan Stola 2005-03-07 16:14:24 UTC
It seems to be a problem of ClassElement.setSuperclass() method.
See org.netbeans.modules.form.wizard.TemplateWizardIterator:92.
setSuperclass() is invoked with a correct identifier, but
the superclass is not set (according to 'formClass.getSuperclass()'
watch evaluated while staying on a breakpoint on the subsequent line).
Comment 2 Martin Matula 2005-03-10 12:02:38 UTC
Dan, please look at it.
Comment 3 Daniel Prusa 2005-03-16 09:23:42 UTC
/cvs/java/src/org/netbeans/modules/java/bridge/ClassElementImpl.java,v  <-- 
ClassElementImpl.java
new revision: 1.18; previous revision: 1.17
Comment 4 Jaromir Uhrik 2005-03-18 13:30:42 UTC
Verified in dev build #200503172015.