Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366817 - "Exception during 'super' constructor evaluation" (visual inheritance)
Summary: "Exception during 'super' constructor evaluation" (visual inheritance)
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Scheglov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 10:05 EST by Georg Konwisser CLA
Modified: 2021-06-04 16:46 EDT (History)
2 users (show)

See Also:


Attachments
Minimalized code example that produced the error (59.82 KB, application/zip)
2011-12-15 10:07 EST, Georg Konwisser CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.