hg: jdk9/dev/jdk: 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN

brian.burkhalter at oracle.com brian.burkhalter at oracle.com
Wed Jul 15 17:43:25 UTC 2015


Changeset: 950f14c10fc9
Author:    bpb
Date:      2015-07-15 10:43 -0700
URL:       http://hg.openjdk.java.net/jdk9/dev/jdk/rev/950f14c10fc9

8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
Summary: Refine documentation of allocate*(), wrap(), slice(), duplicate(), asReadOnlyBuffer(), and as{Type}Buffer() to explcitly state the byte order of the created buffer.
Reviewed-by: alanb

! src/java.base/share/classes/java/nio/X-Buffer-bin.java.template
! src/java.base/share/classes/java/nio/X-Buffer.java.template
+ test/java/nio/Buffer/Order-X.java.template
! test/java/nio/Buffer/Order.java
+ test/java/nio/Buffer/OrderChar.java
+ test/java/nio/Buffer/OrderDouble.java
+ test/java/nio/Buffer/OrderFloat.java
+ test/java/nio/Buffer/OrderInt.java
+ test/java/nio/Buffer/OrderLong.java
+ test/java/nio/Buffer/OrderShort.java
+ test/java/nio/Buffer/genOrder.sh



More information about the jdk9-dev-changes mailing list