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

Bug 349582

Summary: Annotation $hide>>$ ignored in super constructor
Product: z_Archived Reporter: Falko Schumann <falko.schumann>
Component: WindowBuilderAssignee: Project inbox <wb.swing-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: clayberg
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Falko Schumann CLA 2011-06-16 11:30:44 EDT
I have a base class which initialize the object and hide this code with $hide>>$ and $hide<<$. In this base class the window builder parser ignore this code (validated with the option highlight visited lines).

In derived classes from this base class, window builder will execute this hide code.

Error Message:

Exception during 'super' constructor evaluation
An exception happened during evaluation of constructor CardPanel() using arguments {}. 

java.lang.NoClassDefFoundError: ...
Comment 1 Eric Clayberg CLA 2011-06-16 16:58:04 EDT
This is working as expected. Code hiding tags are parser instructions that affect only the class that is currently being edited/parsed. They have no effect on subclasses (when you are editing the subclass) or consumer classes (when you are editing the consumer class). In fact, they are not runtime or execution instructions in any way. If you want to hide executing code (located in superclass, a custom widget, etc.), you should use a Beans.isDesignTime() check instead.
Comment 2 Falko Schumann CLA 2011-06-17 03:49:27 EDT
With Beans.isDesignTime() it works well. Thanks.