Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354452 - Class cast exception if metamodel or metaclass reference is bogus
Summary: Class cast exception if metamodel or metaclass reference is bogus
Status: VERIFIED FIXED
Alias: None
Product: MDT.UML2
Classification: Modeling
Component: Core (show other bugs)
Version: 3.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Kenn Hussey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 00:38 EDT by Kenn Hussey CLA
Modified: 2011-08-11 10:48 EDT (History)
0 users

See Also:
Kenn.Hussey: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenn Hussey CLA 2011-08-11 00:38:00 EDT
If the package or element referenced by a metamodel reference or metaclass reference (in a profile) isn't a model or class (respectively), a class cast exception occurs. Currently a null check is made for these references but an instanceof check should be made instead.
Comment 1 Kenn Hussey CLA 2011-08-11 01:04:19 EDT
The fix has been committed to CVS.
Comment 2 Kenn Hussey CLA 2011-08-11 10:48:45 EDT
The fix is available in 3.2.1 maintenance build M201108110857.