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

Bug 342463

Summary: Debugger opens ".java" files instead of ".class" files if target platform is inside the workspace
Product: [Eclipse Project] JDT Reporter: Michael Rennie <Michael_Rennie>
Component: DebugAssignee: Michael Rennie <Michael_Rennie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, daniel_megert, darin.eclipse, vpiskarov
Version: 3.5.1Flags: curtis.windatt.public: review+
Target Milestone: 3.4.2+   
Hardware: PC   
OS: Windows All   
Whiteboard:
Bug Depends on: 297039    
Bug Blocks:    
Attachments:
Description Flags
back-ported fix none

Description Michael Rennie CLA 2011-04-11 12:20:08 EDT
Created attachment 192943 [details]
back-ported fix

+++ This bug was initially created as a clone of Bug #297039 +++

This would be a very good fix to back-port to 3.4.x as well. It is small and confined and makes the source lookup behavior consistent for products built on 3.4.x.

There are some additional steps to reproduce the problem on 3.4.x:

1. leave the default target platform alone
2. add the '/target/plugins/' folder as a folder entry to your target platform and *do not* remove any of the default entries, otherwise JUnit stops working and you can't run the tests.
3. follow the remainder of the steps from bug 297039

Steps to Reproduce (from bug 297039):
1. Import projects (from https://bugs.eclipse.org/bugs/attachment.cgi?id=153903) into a workspace.
2. Set as Target Platform target as mentioned above.
3. Open Type "foo.Foo". Set a breakpoint at line 5.
4. Select "foo.tests" project and Debug it as JUnit Plugin Test.
5. The debugger stops in "Foo.java" instead of "Foo.class".
Comment 1 Michael Rennie CLA 2011-04-11 14:28:03 EDT
applied patch to R3_4_maintenance, please verify Curtis.
Comment 2 Curtis Windatt CLA 2011-05-24 15:03:34 EDT
Verified