AccessWatchpointRequest.addCountFilter(int) should report one event only when
the count reaches 0. This works as expected.
But after this when we disable the request or delete the request
using EventRequest.disable()
or
EventRequestmanager.deleteEventRequest(request)
it throws the following exception
-------------------------------------------------------------------------------
Exception in thread "main" com.sun.jdi.InternalException: Unexpected JDWP Error:
113
at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:48)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.clear(Even
tRequestManagerImpl.java:174)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.setEnabled
(EventRequestManagerImpl.java:130)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.disable(Ev
entRequestManagerImpl.java:123)
at AccessWatchpointTest.testAddCountFilter(AccessWatchpointTest.java:57)
at AccessWatchpointTest.runTests(AccessWatchpointTest.java:29)
at JDIScaffold.startTests(JDIScaffold.java:190)
at AccessWatchpointTest.main(AccessWatchpointTest.java:15)
NMAKE : fatal error U1077: 'C:\jdk1.3_latest\bin\java' : return code '0x1'
Stop.
-------------------------------------------------------------------------------
Exception in thread "main" com.sun.jdi.InternalException: Unexpected JDWP Error:
113
at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:48)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.clear(Even
tRequestManagerImpl.java:174)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.setEnabled
(EventRequestManagerImpl.java:130)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.disable(Ev
entRequestManagerImpl.java:123)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.delete(Eve
ntRequestManagerImpl.java:110)
at com.sun.tools.jdi.EventRequestManagerImpl.deleteEventRequest(EventReq
uestManagerImpl.java:575)
at AccessWatchpointTest.testAddCountFilter(AccessWatchpointTest.java:57)
at AccessWatchpointTest.runTests(AccessWatchpointTest.java:29)
at JDIScaffold.startTests(JDIScaffold.java:190)
at AccessWatchpointTest.main(AccessWatchpointTest.java:15)
NMAKE : fatal error U1077: 'C:\jdk1.3_latest\bin\java' : return code '0x1'
Stop.
--------------------------------------------------------------------------------
The same exception occurs when addCountFilter(int) is tried and request disabled
or deleted for ModificationWatchpointRequest and BreakpointRequest.
***Testing done in JDK1.3.0-T-Classic VM(WinNT and Solaris2.7)
Steps to reproduce the bug
---------------------------
The bug can be reproduced using the files in the location
"/net/sqesvr/export/disk5/toolsbugs/4315352"
Follow the instructions in README to reproduce the bug.
the count reaches 0. This works as expected.
But after this when we disable the request or delete the request
using EventRequest.disable()
or
EventRequestmanager.deleteEventRequest(request)
it throws the following exception
-------------------------------------------------------------------------------
Exception in thread "main" com.sun.jdi.InternalException: Unexpected JDWP Error:
113
at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:48)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.clear(Even
tRequestManagerImpl.java:174)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.setEnabled
(EventRequestManagerImpl.java:130)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.disable(Ev
entRequestManagerImpl.java:123)
at AccessWatchpointTest.testAddCountFilter(AccessWatchpointTest.java:57)
at AccessWatchpointTest.runTests(AccessWatchpointTest.java:29)
at JDIScaffold.startTests(JDIScaffold.java:190)
at AccessWatchpointTest.main(AccessWatchpointTest.java:15)
NMAKE : fatal error U1077: 'C:\jdk1.3_latest\bin\java' : return code '0x1'
Stop.
-------------------------------------------------------------------------------
Exception in thread "main" com.sun.jdi.InternalException: Unexpected JDWP Error:
113
at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:48)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.clear(Even
tRequestManagerImpl.java:174)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.setEnabled
(EventRequestManagerImpl.java:130)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.disable(Ev
entRequestManagerImpl.java:123)
at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.delete(Eve
ntRequestManagerImpl.java:110)
at com.sun.tools.jdi.EventRequestManagerImpl.deleteEventRequest(EventReq
uestManagerImpl.java:575)
at AccessWatchpointTest.testAddCountFilter(AccessWatchpointTest.java:57)
at AccessWatchpointTest.runTests(AccessWatchpointTest.java:29)
at JDIScaffold.startTests(JDIScaffold.java:190)
at AccessWatchpointTest.main(AccessWatchpointTest.java:15)
NMAKE : fatal error U1077: 'C:\jdk1.3_latest\bin\java' : return code '0x1'
Stop.
--------------------------------------------------------------------------------
The same exception occurs when addCountFilter(int) is tried and request disabled
or deleted for ModificationWatchpointRequest and BreakpointRequest.
***Testing done in JDK1.3.0-T-Classic VM(WinNT and Solaris2.7)
Steps to reproduce the bug
---------------------------
The bug can be reproduced using the files in the location
"/net/sqesvr/export/disk5/toolsbugs/4315352"
Follow the instructions in README to reproduce the bug.