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

Regression: jdwp onthrow options seems to be ignored

XMLWordPrintable

    • 5.0
    • 5.0
    • b39
    • x86
    • windows_xp

        FULL PRODUCT VERSION :
        java version "1.5.0_02"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
        Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]

        A DESCRIPTION OF THE PROBLEM :
        When I run the code below with the command

        java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,onthrow=org.xml.sax.SAXException,launch=notepad.exe,suspend=y test3

        the vm does not launch with notepad.

        However with JDK 1.4 the vm does launch notepad.

        Note that the same failure happens when the 'new' agentlib flag is used
        instead of the old Xdebug/Xrunjdwp.







        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Compile attached code and run with aformentioned command line
        on Windows.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        The VM should launch notepad.
        ACTUAL -
        The VM does not launch notepad

        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        There are no error messages

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        public class test3 extends Thread {
          static void doThrow() throws org.xml.sax.SAXException {
            throw new org.xml.sax.SAXException( "" );
          }
          public static void main( final String[] args ) throws Throwable {
            System.out.println( "start" );
            doThrow();
          }
        }


        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        There is no workaround
        ###@###.### 2005-04-29 22:19:00 GMT

              ohair Kelly Ohair (Inactive)
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: