JDK-6570242 : Regression test failures with Javac on win32.
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-06-15
  • Updated: 2011-05-18
  • Resolved: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b26Fixed
Related Reports
Relates :  
Description
When running javac with the latest RE builds we get these regressions,
it would be good to ensure we get 0 failures.

Also there are some tests in subdir proprietary, these fail if the target is developmental build vs. an image, I beleive it is because of classpath implications 
wrt. using classes and rt.jar. I recommend we do some kind of sanity with these
tests and don't run them if a development build is used or ensure that an
image is provided for these tests in some descriptive fashion.


tools/javac/Paths/CompileClose.java                                            Failed. Execution failed: `main' threw exception: java.lang.Exception: tmpCompileClose.jar: couldn't remove
tools/javac/api/6411310/T6411310.java                                          Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
tools/javac/api/6411333/T6411333.java                                          Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
tools/javac/api/6431257/T6431257.java                                          Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
tools/javac/api/6437349/T6437349.java                                          Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
tools/javac/api/6440333/T6440333.java                                          Failed. Execution failed: `main' threw exception: java.lang.AssertionError
tools/javac/api/Sibling.java                                                   Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Expected C:/build/ws-jdk/windows-i586/tmp/jtreg/jtoutput/jtwork/scratch/Test.class, got /build/ws-jdk/windows-i586/tmp/jtreg/jtoutput/jtwork/scratch/Test.class
tools/javac/api/guide/Test.java                                                Failed. Execution failed: `main' threw exception: java.lang.NullPointerException

Comments
EVALUATION See comments, the only test which needs to be addressed is tools/javac/api/6431257/T6431257.java, the fix is in suggested fix. *** (#1 of 1): [ UNSAVED ] ###@###.###
08-02-2008

SUGGESTED FIX Here is a fix for one these... % hg diff T6431257.java diff -r 9a66ca7c79fa test/tools/javac/api/6431257/T6431257.java --- a/test/tools/javac/api/6431257/T6431257.java Sat Dec 01 00:00:00 2007 +0000 +++ b/test/tools/javac/api/6431257/T6431257.java Wed Feb 06 16:23:47 2008 -0800 @@ -45,12 +45,13 @@ public class T6431257 extends ToolTester } void testPackage(String packageName) throws IOException { + packageName = packageName.replace('/', java.io.File.separatorChar); JavaFileObject object = fm.getJavaFileForInput(PLATFORM_CLASS_PATH, "java.lang.Object", CLASS); Iterable<? extends JavaFileObject> files = fm.list(CLASS_OUTPUT, packageName, EnumSet.of(CLASS), false); boolean found = false; - String binaryPackageName = packageName.replace('/', '.'); + String binaryPackageName = packageName.replace(java.io.File.separatorChar, '.'); for (JavaFileObject file : files) { System.out.println("Found " + file.getName() + " in " + packageName); String name = fm.inferBinaryName(CLASS_OUTPUT, file);
08-02-2008