Community
Participate
Working Groups
9 tests in org.eclipse.jdt.core.tests.compiler.regression fail on IBM Java2 5.0 Seven of these tests all complain of java.lang.Object not being resolved. The other two fail because "@SuppressWarnings" is a class that cannot be resolved. I narrowed the problem down to the method org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.getLibraryClasses() For all JVMs except for MacOS, this method returns JRE_HOME + "/lib/rt.jar". However, with the IBM JRE, there is no "/lib/rt.jar". Most of the base classes are in JRE_HOME + "/lib/vm.jar". The @SuppressWarnings class is in JRE_HOME + "/lib/core.jar". I have created and will attach a patch that detects the presence of vm.jar, and if its there, it returns JRE_HOME + "/lib/vm.jar" + ":" + JRE_HOME + "/lib/core.jar". This change now allows these tests to pass.
Created attachment 52264 [details] Patch to getLibraryClasses to account for IBM Java2 5.0 JRE
We could simply reuse the getJavaClassLibs() method in org.eclipse.jdt.core.tests.util.Util.
I would definitely prefer to reuse code.
That's fine with me. I assumed there was a reason to have a separate method in this class. If that assumption is incorrect, please use the one in Util instead.
Released for 3.3M3.
4 tests are failing using 3.2.2. Philippe, Should I backport to 3.2.2?
Created attachment 52430 [details] Fix for 3.2 maintenance stream
+1 for 3.2.2
Released for 3.2.2.
Verified for 3.3 M3 using build I20061030-0010
Verified for 3.2.2 using build M20070112-1200.