Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-34728

Skip to redefine a loaded, but failed to initialize class on uninstrumenting

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE M5
    • Fix Version/s: 6.2.0 CE M5
    • Component/s: Dev Tools, Testing
    • Labels:
      None

      Description

      When class is loaded, but failed to finish the initialization, like thrown an ExceptionInInitializerError in the static initialization block or a real LinkageError. The class is loaded by ClassLoader but not considered as initialized.

      Current Oracle JVM has problem on redefine such classes.

      To make the uninstrument process can move on, we have to skip redefine those classes.

      Normally this kind of failed initialization is only for boundary condition testing, means most likely those classes are loaded by a temporary mocking classloader, skip uninstrument for them won't be a problem, as after the test run, they will be gced together with their classloader.

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            shuyang.zhou Shuyang Zhou
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 8 weeks ago

                Packages

                Version Package
                6.2.0 CE M5