Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352639 - Erroneous variable in SMAP for "new AnyException"
Summary: Erroneous variable in SMAP for "new AnyException"
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Justin Spadea CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-20 14:20 EDT by Justin Spadea CLA
Modified: 2017-02-23 14:18 EST (History)
0 users

See Also:


Attachments

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