JDK-8198405 : JImageExtractTest.java & JImageListTest.java failed in Windows.
  • Type: Bug
  • Component: tools
  • Sub-Component: jlink
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-02-20
  • Updated: 2018-07-17
  • Resolved: 2018-07-05
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 11 JDK 12
11 b22Fixed 12Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Test:
tools/jimage/JImageExtractTest.java
tools/jimage/JImageListTest.java

Platform: Windows Server 2012 R2 6.3
---------------------------------------------------------------
tools/jimage/JImageExtractTest.java Log:
---------------------------------------------------------------
java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at JImageCliTest.runTests(JImageCliTest.java:111)
	at JImageExtractTest.main(JImageExtractTest.java:183)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute
	at java.base/sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358)
	at java.base/sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:493)
	at java.base/java.nio.file.Files.createDirectory(Files.java:682)
	at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:135)
	at java.base/java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:172)
	at java.base/java.nio.file.Files.createTempDirectory(Files.java:958)
	at JImageExtractTest.testExtractToReadOnlyDir(JImageExtractTest.java:147)
	... 12 more

JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
JavaTest Message: shutting down test

--------------------------------------------------
tools/jimage/JImageListTest.java Log:
--------------------------------------------------

Invoking testListIncludeAllWithRegex
jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
jimage [list, --include, regex:.*, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
Invoking testListIncludeNoMatchWithRegex
jimage [list, --include, regex:not_matching, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
Invoking testListIncludeAllWithGlob
jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
jimage [list, --include, **, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
Invoking testListIncludeAllWithExplicitGlob
jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
jimage [list, --include, glob:**, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
Invoking testListNotExistingImage
jimage [list, .\\not_existing_image]
Invoking testListIncludeNoMatchWithGlob
jimage [list, --include, not_matching, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
Invoking testListIncludeWithGlob
jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
jimage [list, --include, /java.base/java/util/zip/**, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
Invoking testListWithUnknownOption
jimage [list, --unknown]
Invoking testListIncludeWithRegex
jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
jimage [list, --include, regex:/java.base/java/text/.*, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
Invoking testListIncludeMultiplePatterns
jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
jimage [list, --include, glob:/java.base/java/time/**,regex:/java.base/java/util/zip/.*, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
Invoking testListNoImageSpecified
jimage [list, ]
Invoking testList
jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
Invoking testListHelp
jimage [list, -h]
jimage [list, --help]
Invoking testListVerbose
jimage [list, --verbose, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
Invoking testListNotAnImage
jimage [list, .\\JImageListTest4950460920592699424not_an_image]
Invoking testListEmptyFile
jimage [list, .\\JImageListTest11541317331082153685empty_file]
----------System.err:(3/39)----------

JavaTest Message:  Test complete.

result: Passed. Execution successful


test result: Error. failed to clean up files after test

Comments
The tests added via JDK-8167240 are problematic and have been excluded since they were original pushed. One of the engineers in Red Hat has fixed these tests to work on Linux but further work is needed to get these tests to execute on Windows. We should re-exclude these two tests on Windows until someone can fix them.
20-02-2018