ObjectInputStream cloneArray doesn't handle short[]

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 7
    • Affects Version/s: 6
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: