Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349582 - Annotation $hide>>$ ignored in super constructor
Summary: Annotation $hide>>$ ignored in super constructor
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 11:30 EDT by Falko Schumann CLA
Modified: 2021-06-04 16:45 EDT (History)
1 user (show)

See Also:


Attachments

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