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

Bug 352639

Summary: Erroneous variable in SMAP for "new AnyException"
Product: z_Archived Reporter: Justin Spadea <jspadea>
Component: EDTAssignee: Justin Spadea <jspadea>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Justin Spadea CLA 2011-07-20 14:20:48 EDT
throw new egl.core.Anyexception{message = "test"};

This adds the following to the SMAP:

9#1;eze$SettingTarget1;eze$SettingTarget1;egl.core.AnyException

But there is no variable for the exception - that looks like some temp internal name. It also happens if you do "a any = new egl.core.Anyexception{message = "test"};" - you get an entry for 'a' (correct) and an entry for 'eze$SettingTarget1' (incorrect). This won't hurt anything but we should only generate what's needed.
Comment 1 Justin Spadea CLA 2011-07-20 16:52:37 EDT
Fixed CommonUtilities.java to skip fields whose name starts with "eze" rather than just those starting with "eze$Temp". No EGL identifiers can start with that prefix so this is safe, and it's used all over the place for internal and temporary names which we don't want to display.
Comment 2 Justin Spadea CLA 2011-09-08 14:30:54 EDT
Verified