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

ObjectInputStream cloneArray doesn't handle short[]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 6
    • core-libs
    • b123
    • generic
    • generic
    • Verified

      The cloneArray method in java.io.ObjectInputStream does not handle short[], but have two cased for double[]. With assertions enabled an unlucky program would crash. With assertions disabled, suposedly immutable data might not be. The likelihood of a program using a custom resolver to produce a short[] is low, of course.

      Observed in 1.6, still present in 1.7.

            darcy Joe Darcy
            strarup Peter Jensen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: