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

(ch) Retrofit scatter/gather interfaces with varargs where possible

    XMLWordPrintable

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      generic
    • OS:
      solaris_8

      Description

      Date: Wed, 07 Jan 2004 09:20:02 +0100
      From: <###@###.###>
      Subject: retrofit jdk1.4/1.5 api to use varargs
      To: ###@###.###

      I already send you a mail about replacing some array delarations ([])
      by varargs counterparts (...) in the package java.lang.instrument.

      I think this job must be generalized to the whole API.

      Futhermore, not all array declarations must be retrofit :

      Example :
      In package java.nio, interface GatheringByteChannel
      declares two methods write(ByteBuffer[] srcs) and
      write(ByteBuffer[] srcs,int offset,int length).

      I think the first method could be declared write(ByteBuffer... srcs)
      but the later may not changed because the parameters offset and
      length explicitely refer to an array.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            gafter Neal Gafter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Imported:
              Indexed: