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

Loading the class "sun.tools.jconsole.OutputViewer" shows a modal dialog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • tools

      When I get just a Class object for "sun.tools.jconsole.OutputViewer" I also get a side effect: it launches jconsole. And current thread is waiting when jconsole will be closed by a user.
      Such behavior is unexpected when I call Class.forName.

      The code

      public class JConsoleTest {
          public static void main(String[] args) {
              try {
                  Class aClass = Class.forName("sun.tools.jconsole.OutputViewer");
                  System.out.println(aClass);
              } catch (ClassNotFoundException e) {
                  e.printStackTrace();
              }
          }
      }

            sla Staffan Larsen (Inactive)
            tpivovarova Tatiana Pivovarova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: