JDK-8067001 : DetectMutableStaticFields fails after modular images push
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-12-09
  • Updated: 2015-06-04
  • Resolved: 2014-12-09
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 b43Fixed
Related Reports
Relates :  
Description
When running langtools tests against a JDK 9 image, there is one test failure in DetectMutableStaticFields:

here is a mutable field named sharedInstance, at class com/sun/tools/javac/file/JRTIndex
java.lang.AssertionError: There are mutable fields, please check output
	at DetectMutableStaticFields.run(DetectMutableStaticFields.java:149)
	at DetectMutableStaticFields.main(DetectMutableStaticFields.java:123)
	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:498)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
	at java.lang.Thread.run(Thread.java:745)


Something similar has been already fixed as part of JDK-8049367 (MutableFieldsAnalyzer).