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

JPDA thread info incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • vm-legacy
    • sparc
    • solaris_7



      Name: md23716 Date: 01/22/2001

      UNEXPECTED INTERNAL EXCEPTION when requesting thread info using JPDA.
      (Demonstrated using jdb for simplicity):

           Test case:

           ---------------------------------------------
           class WorkerThread extends java.lang.Thread
           {
               public void run()
               {
                   System.out.println("run");
               }
           }

           public class TestJDI
           {
               public static void main(String[] args)
               {
                   WorkerThread wt = new WorkerThread();

                   wt.start();
               }
           }
           ---------------------------------------------

      1. Start jdb (which uses the new JPDA) on TestJDI:
            jdb TestJDI

      2. Set breakpoint on entry to main method:
            stop in TestJDI.main

      3. Run

           run

      4. Check thread information (OK):

           threads

      5. Move past thread creation:

            next

      6. Check thread information (Unexpected JDWP Error: 10):

                threads

      7. Move past thread creation:

           next

      8. Check thread information (OK):

           threads

         Targeted FCS Release

           SOLARIS JDK 1.3.1


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

            dcubed Daniel Daugherty
            mdevereuorcl Michelle Devereux (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: