Community
Participate
Working Groups
I have a java project which is using some class from a jar file (i.e. test.before.Foo in foo.jar). In a newer version of the jar file, the package name has changed to test.after.Foo. I replaced the the old jar file with the new version and update the references in my project. The project builds successfully, however, in the java editor it still shows that test.after.Foo cannot be resolved. The validation errors goes away only after I close and re-open the project. I'll attach a simple project which can be used to reproduce this problem.
Created attachment 52885 [details] project to reproduce this problem To reproduce: ============= 1. Import project into workspace. Open the Test.java file. 2. Comment out the line "import test.before.Foo;" and uncomment "import test.after.Foo;". Save the file. As expected, there is a compilation error (test.after.Foo cannot be resolved). 3. Now copy the new foo.jar from the lib_not_in_classpath folder, and replace the foo.jar in the lib folder. 4. The red Xs in the package-explorer disappears. Also, expanding foo.jar will show the correct test.after.Foo class. There are no entries in the Problems view either. 5. However, in the editor the validation errors are still present. Closing and re-opening Test.java does not help, nor does a clean/re-build.
Reproduced. DeltaProcessor does not generate delta in this case. I'll investigate...
Created attachment 53543 [details] Proposed patch
Philippe, I think it's a good candidate for 3.2.2...
*** Bug 163935 has been marked as a duplicate of this bug. ***
Created attachment 53548 [details] Proposed patch + completion test Same fix + regression test for duplicate bug 163935 (thanks David for help)
Released for 3.3 M4 in HEAD stream.
+1 for 3.2.2
Reopen to backport in R3_2_maintenance stream
Released for 3.2.2 in R3_2_maintenance stream.
Verified for 3.3M4 with I20061212-0010.
*** Bug 161631 has been marked as a duplicate of this bug. ***
*** Bug 161719 has been marked as a duplicate of this bug. ***
Verified for 3.2.2 using build M20070112-1200
*** Bug 174833 has been marked as a duplicate of this bug. ***