XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      In V2.01 (dated November 2005) of the SDO specification it is stated in the table on page 28 that a ClassCastException is expected when get cannot convert from a value to the requested type. However, in many instances an IllegalArgumentException is instead thrown.

      Here is the example explicitly mentioned in the table as throwing a ClassCastException (getDate on a float value), however an IllegalArgumentException is seen in the test case.

      // IllegalArgumentException when expecting ClassCastException

      test_obj.setFloat("floatVal", Float.MAX_VALUE);
      test_obj.getDate("floatVal");

      Attachments

        Activity

          People

            Unassigned Unassigned
            okstatendn Brian Murray
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: