Re: Implementing https://bugs.openjdk.java.net/browse/JDK-5071718

2015-09-28 Thread Paul Sandoz
Hi Sven, Your intuition is right, you need to modify associated templates e.g.: jdk/src/java.base/share/classes/java/nio/*-X-Buffer.java.template The best thing to do is pick an existing method common to all buffers (such as the existing slice method), work out how it is implemented and then

Implementing https://bugs.openjdk.java.net/browse/JDK-5071718

2015-09-26 Thread Sven Reimers
Hi all, what would it take to get JDK-5071718 into 9? I thought about something like this; /** Creates a new byte buffer whose content is a shared subsequence of this buffer's content. The content of the new buffer will start at the given position. The capacity and limit of the new buffer will