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

Bug 323973

Summary: JSP translation lacks package fragment root
Product: [WebTools] WTP Source Editing Reporter: Nick Sandonato <nsand.dev>
Component: jst.jspAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED FIXED QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: itewksbu, matthias.b, mauromol, thatnitind
Version: 3.2Flags: thatnitind: review+
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Nick Sandonato CLA 2010-08-30 10:38:19 EDT
Created attachment 177733 [details]
patch

When creating the compilation unit for a JSP translation, it's missing a package fragment root. While most functionality is still present, refactoring tends to not work due to the JDT requiring a package fragment root for the compilation unit, otherwise it thinks the source file is outside of the classpath and so the JDT Match locator skips over it.
Comment 1 Nick Sandonato CLA 2010-08-30 10:40:12 EDT
To be clear, this is a regression, where before the source was part of a package fragment root, and currently it is not. This attached patch will add the compilation unit back to a package fragment root.
Comment 2 Nitin Dahyabhai CLA 2010-08-31 14:44:01 EDT
This seems dependent on there being a Source folder on the build path.  Do things work if there is not one?
Comment 3 Nick Sandonato CLA 2010-08-31 20:10:54 EDT
(In reply to comment #2)
> This seems dependent on there being a Source folder on the build path.  Do
> things work if there is not one?

We've always been dependent on there being a Source folder in the build path. There may be a way for us to remove this dependency, but as noted, without a package fragment root, JDT will not allow us to refactor anyway.
Comment 4 Nick Sandonato CLA 2010-12-14 15:22:56 EST
Code checked in. Thanks, Nitin.