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

DetectMutableStaticFields fails after modular images push

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b43
    • Verification:
      Verified

      Backports

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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: