Bug 161476

Summary: org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.test024 passes unexpectedly with IBM Java2 5.0
Product: [Eclipse Project] JDT Reporter: Corey Ashford <cjashfor>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: maxime_daniel, philippe_mulet
Version: 3.3   
Target Milestone: 3.2.2   
Hardware: Power PC   
OS: Linux-GTK   
Whiteboard:

Description Corey Ashford CLA 2006-10-18 16:46:48 EDT
org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.test024 references a class - sun.net.spi.nameservice.dns.DNSNameService - which the test believes* is not supposed to be in the bases clases of the JRE.  However, on IBM Java2 5.0, said class *is* in JRE_HOME/lib/core.jar, so no error message results, and the test passes unexpectedly.

I'm not sure if this is an error in the test or an error in the JRE, but I'm going to guess at this point that the test is erroneous and should be withdrawn from the suite.

* - please forgive the anthropomorphism
Comment 1 Olivier Thomann CLA 2006-10-18 22:16:51 EDT
The best is to rewrite the test so that it would work on all VMs.
Comment 2 Olivier Thomann CLA 2006-10-18 23:32:51 EDT
Released for 3.3M3.
Comment 3 Philipe Mulet CLA 2006-10-19 04:31:40 EDT
Maxime - does this problem exist also in 3.2 maintenance ? If so, pls backport.
Comment 4 Olivier Thomann CLA 2006-10-19 06:36:47 EDT
I'll backport in 3.2.2
Comment 5 Olivier Thomann CLA 2006-10-20 13:39:58 EDT
Released for 3.2.2.
Comment 6 David Audel CLA 2006-10-30 09:00:28 EST
Verified for 3.3 M3 using build I20061030-0010
Comment 7 Maxime Daniel CLA 2007-01-16 04:32:13 EST
The test is fixed in that in now passes on IBM Java 5.0. BUT the test is no more testing what it is supposed to test (comment out the -extdir line and the test still passes).
Hence I open fup bug 170595 to fix the test case again.
Verified for 3.2.2 using build M20070112-1200.