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

Bug 329714

Summary: [search] Java Search does not find method usage when includes are on same line
Product: [WebTools] WTP Source Editing Reporter: Shaun F <bugtank>
Component: jst.jspAssignee: jst.jsp <jst.jsp-inbox>
Status: NEW --- QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: mauromol, thatnitind
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Shaun F CLA 2010-11-08 17:02:40 EST
Build Identifier: 3.5.2.R35x_v20100210-0800-9hEiFzmFst-TiEn9hNYgDWg1XN8ulH_JvCNGB	

If a set of target files uses a method such named someClass.foo() and someClass is in a package named some.package, then you are not able to turn up the method usage in a Java Search if the package "some.package" is included on the same line as another package as such: 

<%@page import="some.other.package,some.package"%>

However, if the packages are imported on a separate line, then the Java Search will turn up the method.

<%@page import="some.other.package"%>
<%@page import="some.package"%>


Reproducible: Always

Steps to Reproduce:
1. Create two jsp pages and call some method.
2. On one jsp page, import the package that contains the class method on separate lines. On the other jsp page, use one import statement for multiple packages.
3. Do a java search for the method.
Comment 1 Nitin Dahyabhai CLA 2010-11-08 22:58:18 EST
Can you reproduce this with 3.6.1/Helios SR1?
Comment 2 Shaun F CLA 2010-11-10 13:30:25 EST
(In reply to comment #1)
> Can you reproduce this with 3.6.1/Helios SR1?

I believe i was able to.  I downloaded the Jee version of the software, setup a java project and a java web project.  The java web project was dependent on the java project.  i then attempted to search for the jsp usages (inside java web) of a method that is implemented in the java project and was not able to turn any up.