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

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 6.2.0 CE M5
    • 6.2.0 CE M5
    • Dev Tools, Testing
    • 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

            michael.saechang Michael Saechang
            shuyang.zhou Shuyang Zhou
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 30 weeks, 5 days ago

              Packages

                Version Package
                6.2.0 CE M5