Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330255 - [Backbone] PapyrusMatchingStratgey can lead to a ClassCastException
Summary: [Backbone] PapyrusMatchingStratgey can lead to a ClassCastException
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Remi Schnekenburger CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-15 10:25 EST by Remi Schnekenburger CLA
Modified: 2010-11-15 10:30 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 Remi Schnekenburger CLA 2010-11-15 10:25:53 EST
In some cases, org.eclipse.papyrus.editor.PapyrusMatchingStrategy can lead to a ClassCastException when trying to navigate from java files.

Use case:
- Install Papyrus in Eclipse
- Open a java file
- Try to navigate in the file using Ctlr+click. this opens a stack trace.

The problem is located in the class PapyrusMatchingStrategy from the plugin org.eclipse.papyrus.editor. The first line contains a untested conversion of the editor input as a IFileEditorInput... A test is performed later, but this is too late.
Comment 1 Remi Schnekenburger CLA 2010-11-15 10:30:28 EST
Fixed in r3224.