Community
Participate
Working Groups
I have two projects "first" and "second" having both in the classpath the default JRE_LIB (..\eclipse\jre\lib\rt.jar). This is the only classpath entry. The projects are not dependent on each other. When I search in the scope of the project "second" for the class "java.lang.Object" the search engine returns the java element contained in the archive of the project "first". Is this a normal behavior ? I expect the result to be the element contained in the archive of the project "second" (when I search in "second" project's scope) and both elements when I search in workspace scope. I have the same result if the first project is closed or opened.
External JAR children elements are shared. However, the search result handles are supposed to be rooted properly.
Now using the scope as a hint for the creation of the handle. Added regression test JavaSearchTests.testTypeDeclarationInJar3()
Verified.
Moved test to JavaSearchMultipleProjectsTests.testTypeDeclarationInJar()