Bug 403250 - [debug] Cannot find sources for classes that do not share the name of the Xtend file
Summary: [debug] Cannot find sources for classes that do not share the name of the Xte...
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.4.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-13 14:44 EDT by Sebastian Zarnekow CLA
Modified: 2013-03-13 14:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2013-03-13 14:44:10 EDT
0) JSR 45
1) Create an Xtend file A.xtend with a class X.
2) Export as Jar including source
3) Add the jar to the class path

Expand the jar in the package explorer and find X.class. Double click X.class and see that A.xtend is opened properly. 

4) Set a break point in A.xtend and run some main class that invokes the code
5) JDTs source lookup reports that A.xtend cannot be found

Possible solution:

Hijack the RuntimeProcess in the DebugListener and attach another SourceLookupParticipant to the SourceLookupDirector that knows how to handle Xtend types similar to what is done for types that share the name of the class.