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

(bf) CharBuffer.subSequence can be updated to take advantage of covariant returns

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • core-libs
    • b37
    • generic
    • generic
    • Not verified

      It would be desirable to retrofit CharBuffer to take advantage of covariant returns. Specifically, CharBuffer implements CharSequence and the subSequence method can be safely changed to return the more specific type, see Martin's proposal at:
        http://mail.openjdk.java.net/pipermail/core-libs-dev/2008-July/000596.html

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: