[JDK-8067001] DetectMutableStaticFields fails after modular images push Created: 2014-12-09  Updated: 2015-06-04  Resolved: 2014-12-09

Status: Closed
Project: JDK
Component/s: tools
Affects Version/s: 9
Fix Version/s: 9

Type: Bug Priority: P2
Reporter: Maurizio Cimadamore Assignee: Maurizio Cimadamore
Resolution: Fixed Votes: 0
Labels: noreg-self
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backport
backported by JDK-8085292 DetectMutableStaticFields fails after... Resolved
Relates
relates to JDK-8049367 Modular Run-Time Images Resolved
Subcomponent: javac
Resolved In Build: b43
Verification: Verified

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

 Comments   
Comment by HG Updates [ 2014-12-09 ]
URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/b32db211cfbc
User: mcimadamore
Date: 2014-12-09 16:14:01 +0000
Comment by HG Updates [ 2014-12-17 ]
URL: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/b32db211cfbc
User: lana
Date: 2014-12-17 21:52:40 +0000
Generated at Sat Aug 24 03:07:12 UTC 2019 using Jira 7.13.5#713005-sha1:8d78f1047b9cca7d35d4d13f706b37e27d869e07.