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

Duplicate breakpoint reporting in JVMDI causes wrong JDI counted bp behavior

XMLWordPrintable

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

      BreakpointRequest.addCountFilter(int) should report one event only when
       the count reaches 0.
       The event should be reported when the value of field "i" in class Test1 is
       5 that is when the filter count reaches zero. The testcase behaves as
       expected in Win32 Classic, Win32 Hotspot and Solaris Classic.
       In **Solaris Hotspot** the event is reported(at "i=2") even before
       the filter count reaches zero.

       Testing done in JDK1.3.0-R build.

       Steps to reproduce the bug
       ---------------------------
       1)Set path to latest JDK
       2)Compile the attached files with -g option
       3)Start the targetVM with the command
       java -Xdebug -Xnoagent
       -Xrunjdwp:transport="dt_socket",server=y,suspend=y,address=5670 Test1
       4)Start the debugger with the command
       java CountBugTest

       Attachments:
       ------------
       1. JDIScaffold.java
       2. VMConnection.java
       3. CountBugTest.java
       4. Test1.java

            dcubed Daniel Daugherty
            sshakilasunw Shahulhameedmohaideenhaleema Shakila (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: