Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366817

Summary: "Exception during 'super' constructor evaluation" (visual inheritance)
Product: z_Archived Reporter: Georg Konwisser <gekonwi>
Component: WindowBuilderAssignee: Konstantin Scheglov <Konstantin.Scheglov>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: clayberg, yhvhrafael
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Minimalized code example that produced the error none

Description Georg Konwisser CLA 2011-12-15 10:05:31 EST
Build Identifier: 20110916-0149

Got this Exception thrown everytime I try to open the design view of my derivated class. The parent class is a simple JPanel in CardLayout with a JScrollPane.

If I remove the JScrollPane and add a new JScrollPane, the error is gone - means I can open and the design view of the derived class without any errors. But if I change the layout of the JPanel in the parent class to any other layout and then back to CardLayout - the described error occurs again.

Reproducible: Always

Steps to Reproduce:
1. Create a JPanel-class ParentPanel
2. Create a JPanel-class ChildPanel, that has ParentPanel as SuperClass
3. Switch to design view in ParentPanel
4. Add a JScrollPane to ParentPanel
5. Change the layout of ParentPanel to CardLayout
6. Open the design view of ChildPanel
Comment 1 Georg Konwisser CLA 2011-12-15 10:07:12 EST
Created attachment 208442 [details]
Minimalized code example that produced the error
Comment 2 Konstantin Scheglov CLA 2011-12-28 14:31:27 EST
1. Work for me under Java 1.7, because "null" is now valid "name" and converted into empty String.

2. Fixed, now WB will generate some "name" during converting from other layout to CardLayout.