Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8067001

DetectMutableStaticFields fails after modular images push

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • tools
    • b43
    • Verified

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

              mcimadamore Maurizio Cimadamore
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: