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

Kitchensink: Instrumentation module fails to instrument classes which throw errors in clinit

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:

      Backports

        Description

        Instrumentation tries to check if class is modifiable with

                    try {
                        Class clz = Class.forName(className);
                        if (!instrumentation.isModifiableClass(clz)) {
                            continue;
                        }
                        instrumentation.retransformClasses(clz);
                    } catch (ClassNotFoundException cfe) {
                        // class might be already unloaded
                    } catch (UnmodifiableClassException uce) {
                        throw new RuntimeException(uce);
                    }

        and might fails in Class.forName

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  lmesnik Leonid Mesnik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: