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

InvalidTypeException is not thrown when boolean passed instead of double

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              fzhinkin Filipp Zhinkin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: