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

rename of createArray to createArrayOf

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.4.1
    • core-libs
    • None
    • b86
    • generic
    • generic
    • Verified

      Need to rename createArray to createArrayOf?
      this because of the two possible interpretations of the type name
      argument. As we discovered, some vendors would prefer to interpret this as
      the name of the array type itself, while the SQL standard requires
      that it be interpreted as the element type name. It is possible that
      some time in the future the various standards bodies can come to some
      agreement to permit named array types in which case the JDBC standard
      would need to be expanded to include the vendor interpretation.
      Further, the argument to createStruct is the name of the ADT itself.
      It would be confusing to have to analogous names that interpret the
      argument differently. I think createArrayOf clearly expresses that
      the argument is the element type. That is missing from createArray.

            lancea Lance Andersen
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: