Relates :
|
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).