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

Bug 330255

Summary: [Backbone] PapyrusMatchingStratgey can lead to a ClassCastException
Product: [Modeling] Papyrus Reporter: Remi Schnekenburger <rschnekenburger>
Component: CoreAssignee: Remi Schnekenburger <rschnekenburger>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.