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

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

    XMLWordPrintable

Details

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

    Description

      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();
              }
          }
      }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: