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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: