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

Use covariant return types in the NIO buffer hierarchy

    Details

    • Subcomponent:
    • Resolved In Build:
      b38
    • CPU:
      generic, x86
    • OS:
      solaris_8, windows_xp
    • Verification:
      Verified

      Backports

        Description

        ByteBuffer.flip() would be much more useful if it returned ByteBuffer
        instead of Buffer. Covariance (expected in 1.5) makes this possible.
        There are many other places where this applies.

          Issue Links

            Activity

            Hide
            mr Mark Reinhold added a comment -
            BT2:EVALUATION

            Yes, we'll do this in Tiger. -- ###@###.### 2002/11/13
            Show
            mr Mark Reinhold added a comment - BT2:EVALUATION Yes, we'll do this in Tiger. -- ###@###.### 2002/11/13
            Show
            tbell Tim Bell added a comment - BT2:EVALUATION Contribution forum : https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?forumID=1463&messageID=15541
            Show
            psandoz Paul Sandoz added a comment - See thread:    http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-April/026458.html and patch:    http://cr.openjdk.java.net/~rwarburton/buffer-overrides-1/
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/173916b1007e
            User: psandoz
            Date: 2014-10-29 13:18:34 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/173916b1007e User: psandoz Date: 2014-10-29 13:18:34 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/173916b1007e
            User: lana
            Date: 2014-11-05 19:35:24 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/173916b1007e User: lana Date: 2014-11-05 19:35:24 +0000

              People

              • Assignee:
                rwarburton Richard Warburton
                Reporter:
                gafter Neal Gafter
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: