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

Summary: Missing superclass in the source code of Bean Form
Product: java Reporter: Jaromir Uhrik <juhrik>
Component: UnsupportedAssignee: Daniel Prusa <dprusa>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

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.