• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • OpenJDK8 -> OpenJDK11
    • None
    • Sprint 215 AMM, Sprint 217 AMM

      The java.lang.System.runFinalizersOnExit(boolean value) and java.lang.Runtime.runFinalizersOnExit(boolean value) have been deprecated for some time as they are regarded as inherently unsafe. Running finalizers on exit was disabled by default and enabling it could result in finalizers being called on live objects which are still being manipulated by other threads.

      When
      a Java class uses java.lang.System.runFinalizersOnExit(boolean value) or java.lang.Runtime.runFinalizersOnExit(boolean value)

      Perform
      add a hint to remove these calls as they are unsafe

        1. runFinalizer-and-SecurityManager.png
          runFinalizer-and-SecurityManager.png
          193 kB
        2. rule-id-00130.png
          rule-id-00130.png
          110 kB
        3. rule-id-00041.png
          rule-id-00041.png
          98 kB
        4. Finalizers.java
          0.2 kB

              rhn-support-kpunwatk Karishma Punwatkar
              rhn-engineering-ahughes Andrew Hughes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: