-
Bug
-
Resolution: Fixed
-
P4
-
1.4.1
-
mantis
-
generic
-
generic
Name: vpR10197 Date: 05/07/2002
The specification of the EventRequestManager interface for the method
createStepRequest(ThreadReference thread,
int size,
int depth)
contains a description of the DuplicateRequestException exception only.
The following point needs clarifications:
An invocation of this method with wrong <size>/<depth> parameters throws
IllegalArgumentException, but the specification contains nothing about it
for createStepRequest method.
At this moment, there is a test form testbase_nsk, which assumes that
throwing of this exception is valid. This test is:
...nsk/jdi/EventRequestManager/createStepRequest/crstepreq002
======================================================================
Name: vpR10197 Date: 06/03/2002
The following test from testbase_nsk
nsk/jdi/EventRequestManager/_bounds_/requests001
assumes that throwing of IllegalArgumentException is invalid.
This test checks up createStepRequest method with boundary arguments.
When size is Integer.MAX_VALUE or depth is Integer.MAX_VALUE,
IllegalArgumentException is thrown and test is considered as failed.
This test will appear in testbase_nsk r15.
Depending on decision about validity of that exception,
one of these tests has to be fixed.
======================================================================
Name: vpR10197 Date: 06/16/2002
The following test from testbase_nsk
nsk/jdi/EventQueue/remove_l/remove_l005
has the same effect.
This test checks up com.sun.jdi.event.EventQueue.remove(long) with
Long.MIN_VALUE, -1 and Long.MAX_VALUE parameters.
When argument is Long.MIN_VALUE or -1, EventQueue.remove(long) throws
unspecified IllegalArgumentException.
======================================================================
Name: vpR10197 Date: 06/24/2002
The following test from testbase_nsk
nsk/jdi/EventRequest/_bounds_/eventrequest001
has the same effect.
When this test is invoking
com.sun.jdi.request.EventRequest.setSuspendPolicy(long)
with wrong parameters such as Long.MIN_VALUE, -1 and Long.MAX_VALUE,
unspecified IllegalArgumentException is thrown.
This test will appear in testbase_nsk r15.
======================================================================
- relates to
-
JDK-4765089 JDI spec: Throwing of IllegalArgumentException is invalid
-
- Closed
-