Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1055

DataFactory.create(abstract_type) should throw an IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Java-SDO-Next
    • Java-SDO-beta1
    • None
    • You should see this error in any environment.

    Description

      Use an Abstract type as a parameter of DataObject.create() and it works fine now without any exception, but it should throw an exception.

      According to the spec in section 3.7.2 Creating Data Objects, it reads:

      • Type.dataType and abstract must be both fase.
      • Throw an IllegalArgumentException if the instanceClass does not correspond to a Type this factory can instantiate.

      Attachments

        1. TUSCANY-1055.patch
          0.6 kB
          Ki Park

        Activity

          People

            Unassigned Unassigned
            kipark Ki Park
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: