JDK-8297528 : java/io/File/TempDirDoesNotExist.java test failing on windows-x64
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 20
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: x86_64
  • Submitted: 2022-11-23
  • Updated: 2022-12-10
  • Resolved: 2022-11-28
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 20
20 b26Fixed
Related Reports
Relates :  
Sub Tasks
JDK-8297533 :  
Description
The following test failed in the JDK20 CI:

java/io/File/TempDirDoesNotExist.java

Here's a snippet from the log file:

#section:main
----------messages:(7/247)----------
command: main TempDirDoesNotExist
reason: Assumed action based on file name: run main TempDirDoesNotExist 
started: Wed Nov 23 19:25:42 UTC 2022
Mode: agentvm
Agent id: 8
finished: Wed Nov 23 19:25:42 UTC 2022
elapsed time (seconds): 0.026
----------configuration:(14/1320)*----------

<snip>

----------System.err:(16/1071)*----------
java.nio.file.InvalidPathException: Illegal char <:> at index 46: C:\\Users\\mach5-one\\non-existing-\\2022-11-23T19:25:42.876284500Z
	at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
	at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
	at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:232)
	at java.base/java.nio.file.Path.of(Path.java:148)
	at TempDirDoesNotExist.main(TempDirDoesNotExist.java:46)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
	at java.base/java.lang.Thread.run(Thread.java:1591)

JavaTest Message: Test threw exception: java.nio.file.InvalidPathException
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.nio.file.InvalidPathException: Illegal char <:> at index 46: C:\Users\mach5-one\non-existing-\2022-11-23T19:25:42.876284500Z
Comments
The fix for this bug is integrated in jdk-20+26-1973.
28-11-2022

Changeset: cdf9ed07 Author: Weibing Xiao <weibing.xiao@oracle.com> Committer: Roger Riggs <rriggs@openjdk.org> Date: 2022-11-28 21:34:36 +0000 URL: https://git.openjdk.org/jdk/commit/cdf9ed07de102ae388278163e3bf702d861fc30a
28-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11393 Date: 2022-11-28 16:52:09 +0000
28-11-2022

https://github.com/openjdk/jdk/pull/11174#discussion_r1031286680
24-11-2022