-
Bug
-
Resolution: Won't Fix
-
P3
-
None
-
1.4.2, 5.0u34
-
generic
-
generic
ObjectReference.invokeMethod doesn't throw InvalidTypeException when argument of type boolean passed instead of expected double.
Test nsk/jdi/ObjectReference/invokeMethod/invokemethod007 failed with backported testbase and jdk 1.5.0_34 b01_j4b (issue also reproduced with jdk 1.5.0 FCS).
Log example:
[2011-11-15T19:07:39.46] #>
[2011-11-15T19:07:39.46] #> SUMMARY: Following errors occured
[2011-11-15T19:07:39.46] #> during test execution:
[2011-11-15T19:07:39.46] #>
[2011-11-15T19:07:39.46] # ERROR: TEST FAILED: expected InvalidTypeException was not thrown
[2011-11-15T19:07:44.51] # ERROR: when attempted to invoke the method "doubleMeth (D)D"
[2011-11-15T19:07:44.51] # ERROR: got from reference type "nsk.jdi.ObjectReference.invokeMethod.invokemethod007tDummyClass.sBooleanFld class nsk.jdi.ObjectReference.invokeMethod.invokemethod007tDummyClass (loaded by instance of sun.misc.Launcher$AppClassLoader(id=201))"
[2011-11-15T19:07:44.51] # ERROR: with the arguments: nsk.jdi.ObjectReference.invokeMethod.invokemethod007tDummyClass.sBooleanFld [true]"
[2011-11-15T19:07:44.51] # ERROR: using the debuggee object reference "instance of nsk.jdi.ObjectReference.invokeMethod.invokemethod007tDummyClass(id=203)"
[2011-11-15T19:07:44.51] # Test level exit status: 97
[2011-11-15T19:07:49.57] # Host info: SunOS stt-21 5.10 Generic_142909-17 sun4u sparc SUNW,Sun-Blade-2500
Previoulsy this failure was suggested as a test issue and described in CR 4681633, but as it mentioned there it is not a test issue.
Same issue was fixed for JDK 6 with CR 6431735.
Test nsk/jdi/ObjectReference/invokeMethod/invokemethod007 failed with backported testbase and jdk 1.5.0_34 b01_j4b (issue also reproduced with jdk 1.5.0 FCS).
Log example:
[2011-11-15T19:07:39.46] #>
[2011-11-15T19:07:39.46] #> SUMMARY: Following errors occured
[2011-11-15T19:07:39.46] #> during test execution:
[2011-11-15T19:07:39.46] #>
[2011-11-15T19:07:39.46] # ERROR: TEST FAILED: expected InvalidTypeException was not thrown
[2011-11-15T19:07:44.51] # ERROR: when attempted to invoke the method "doubleMeth (D)D"
[2011-11-15T19:07:44.51] # ERROR: got from reference type "nsk.jdi.ObjectReference.invokeMethod.invokemethod007tDummyClass.sBooleanFld class nsk.jdi.ObjectReference.invokeMethod.invokemethod007tDummyClass (loaded by instance of sun.misc.Launcher$AppClassLoader(id=201))"
[2011-11-15T19:07:44.51] # ERROR: with the arguments: nsk.jdi.ObjectReference.invokeMethod.invokemethod007tDummyClass.sBooleanFld [true]"
[2011-11-15T19:07:44.51] # ERROR: using the debuggee object reference "instance of nsk.jdi.ObjectReference.invokeMethod.invokemethod007tDummyClass(id=203)"
[2011-11-15T19:07:44.51] # Test level exit status: 97
[2011-11-15T19:07:49.57] # Host info: SunOS stt-21 5.10 Generic_142909-17 sun4u sparc SUNW,Sun-Blade-2500
Previoulsy this failure was suggested as a test issue and described in CR 4681633, but as it mentioned there it is not a test issue.
Same issue was fixed for JDK 6 with CR 6431735.
- relates to
-
JDK-6431735 Unexpected ClassCastException in ThreadReference.forceEarlyReturn
-
- Closed
-