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

AccessibleJTree outputs debug information on console.

XMLWordPrintable

    • sparc
    • solaris_2.5.1



      Name: aaC67449 Date: 02/23/99


      Some AccessibleJTree methods print debug information on console.

      Source code:
      JTree:2924:"
              public AccessibleJTree() {
       
      System.out.println("AccessibleJTree created");
      Thread.dumpStack();

      "
      JTree:3497:"
      System.out.println("in getAccessibleParent for " + this.toString());
      System.out.println(" -> index = " + index);
      "


      The bug appears in JDK-1.2.2-H.

      see example.

      -------------------Example-----------------------------------
      import javax.swing.*;
      import javax.accessibility.*;
      public class Test {

          public static void main(String argv[]) {
               JTree parent = new JTree();
               AccessibleContext c = parent.getAccessibleContext();
          }

      }
      -------------------Output------------------------------------
      AccessibleJTree created
      java.lang.Exception: Stack trace
              at java.lang.Thread.dumpStack(Thread.java, Compiled Code)
              at javax.swing.JTree$AccessibleJTree.<init>(JTree.java, Compiled Code)
              at javax.swing.JTree.getAccessibleContext(JTree.java, Compiled Code)
              at Test.main(Test.java, Compiled Code)

      ======================================================================

            lmonsantsunw Lynn Monsanto (Inactive)
            alisunw Ali Ali (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: