JDK-8132704 : [TESTBUG] jdk/internal/jimage/ExecutableTest.java incorrectly asserts all files to be executable
  • Type: Bug
  • Component: core-libs
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2015-07-30
  • Updated: 2015-09-10
  • Resolved: 2015-07-31
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 9
9 b77Fixed
Related Reports
Relates :  
Description
jdk/internal/jimage/ExecutableTest.java failed on linux with following error message:
java.lang.Error: /Users/aurora/CommonData/jdk/bin/jmc.ini is not executable!
	at ExecutableTest.main(ExecutableTest.java:53)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:504)
	at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
	at java.lang.Thread.run(Thread.java:746)


bin/jmc.ini is a configuration file and failed in assertion



Comments
jmic is a proprietary file. We've had trouble with it showing up in the bin directory in the past (JDK-8022546 is an example), maybe now is the time to chase it up again.
30-07-2015

Any idea how this could be fixed? What about taking a positive list, e.g. all the executables from OpenJDK/jdk/bin on Linux and check their execution bits if the executable exist? (On Windows we'll have to append '.exe' of coarse)
30-07-2015

Yes, I believe it stands for Java Mission Control.
30-07-2015

I've tested this with OpenJDK and there all the files are executable on Linux/Solaris/MacOSX/AIX and Windows. Is jmc.ini a proprietary build artifact? I couldn't find it in any OpenJDK build.
30-07-2015

This is a new test added by JDK-8132475. I believe the test is incorrect to assert that all files in the bin directory should be executable.
30-07-2015