changeset 147:23a1887bf42a

8076553: Build error getByteOrder() Summary: Added getByteOrder() implementation Reviewed-by: snazarki
author amironov
date Thu, 02 Apr 2015 17:16:38 +0300
parents c62fcea05b22
children a772e993b618
files src/share/classes/com/oracle/dio/impl/AbstractPeripheral.java src/share/classes/jdk/dio/Device.java
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/oracle/dio/impl/AbstractPeripheral.java	Wed Apr 01 20:10:31 2015 +0300
+++ b/src/share/classes/com/oracle/dio/impl/AbstractPeripheral.java	Thu Apr 02 17:16:38 2015 +0300
@@ -35,6 +35,7 @@
 import com.oracle.dio.utils.Constants;
 import com.oracle.dio.utils.ExceptionMessage;
 import java.nio.Buffer;
+import java.nio.ByteOrder;
 
 /* It is recommended to synchronize subclass native operation on {@code handle} lock.
    @see {@link #unlock()} for the reason
@@ -200,4 +201,8 @@
      * Release peripheral for shared access
      */
     protected  void unlock0() { handle.unlock(); }
+
+    public ByteOrder getByteOrder() throws IOException, UnavailableDeviceException, ClosedDeviceException {
+        return ByteOrder.LITTLE_ENDIAN;
+    }
 }
--- a/src/share/classes/jdk/dio/Device.java	Wed Apr 01 20:10:31 2015 +0300
+++ b/src/share/classes/jdk/dio/Device.java	Thu Apr 02 17:16:38 2015 +0300
@@ -27,6 +27,7 @@
 
 import java.io.IOException;
 import java.nio.channels.Channel;
+import java.nio.ByteOrder;
 
 /**
  * The {@code Device} interface represents devices in the system. This interface