-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.0, 1.4.1, 1.4.2
-
generic
-
generic
Name: vpR10197 Date: 10/28/2002
------------------------------------------------------------------------------
Test : nsk/jdi/EventRequest/disable/disable003
Test Base : testbase_nsk
VM : ServerVM, ClientVM
Mode : comp, int, mixed
Platform (s) : solx86, linux, solsparc, win
OS : 5.8, RH7.2, NT/2000
JDK : 1.4.2-b03, hopper-rc, merlin-rc
------------------------------------------------------------------------------
The test performs next steps:
1. debugger creates BreakpointRequest at class "A" of debuggee and
waits a corresponding event
2. after getting BreakpointEvent, debugger redefines class "B"
3. then debugger tries to disable BreakpointRequest and checks state of
BreakpointRequest to be disabled.
On the 3-d step, when debugger is calling EventRequest.disable(),
InternalException is thrown with "Unexpected JDWP Error: 41" message.
The test will be available in testbase_nsk.v142r18
Steps to reproduce
==================
1. cd /net/sqesvr.sfbay/export/vsn/GammaBase/Bugs/4770019
2. sh doit.sh $JAVA_HOME
An example of the test's output:
TEST BEGINS
===========
event ===>>> VMStartEvent in thread main
event ===>>> ClassPrepareEvent in thread main
debugeeClass :nsk.jdi.EventRequest.disable.disable003a
setting breakpoint...
debugee> breakpoint :breakpoint request
nsk.jdi.EventRequest.disable.disable003a:30 (enabled)
event ===>>> ###@###.###ble003a:30 in
thread main
redefinition of the "nsk.jdi.EventRequest.disable.disable003b" class
a new class-file :newclass/nsk/jdi/EventRequest/disable/disable003b.class
is breakpoint enabled? true
disabling the breakpoint request...
com.sun.jdi.InternalException: Unexpected JDWP Error: 41
at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47)
at
com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.clear(EventRequestMan
agerImpl.java:190)
at
com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.setEnabled(EventReque
stManagerImpl.java:140)
at
com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.disable(EventRequestM
anagerImpl.java:131)
at nsk.jdi.EventRequest.disable.disable003.execTest(disable003.java:160)
at nsk.jdi.EventRequest.disable.disable003.run(disable003.java:82)
at nsk.jdi.EventRequest.disable.disable003.main(disable003.java:62)
debugee.stdout> completed succesfully.
Test finished. exitStatus = 2
debugee> Debuggee VM finally forced to exit
exit code = 97
======================================================================
- duplicates
-
JDK-4764185 Set a bkpt, redefine a different class, clear the bkpt, get JDWP error 41
-
- Resolved
-