changeset 228:803e5b366711

8133258: SPIDevice.read(0-capacity ByteBuffer) results in IAE. Summary: IAE is removed Reviewed-by: snazarki Contributed-by: olga.milovskaya@oracle.com
author snazarki
date Mon, 10 Aug 2015 17:57:08 +0300
parents 95be573d84d4
children 58b384244452
files src/share/classes/com/oracle/dio/spibus/impl/SPISlaveImpl.java
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/oracle/dio/spibus/impl/SPISlaveImpl.java	Fri Jul 31 15:09:32 2015 +0300
+++ b/src/share/classes/com/oracle/dio/spibus/impl/SPISlaveImpl.java	Mon Aug 10 17:57:08 2015 +0300
@@ -291,7 +291,6 @@
     // checkWordLen ought to be called before checkBuffer to get byteNum is up to date
     @Override
     protected void checkBuffer(Buffer buffer) {
-        super.checkBuffer(buffer);
 
         if ((buffer.remaining() % byteNum) != 0) {
             throw new InvalidWordLengthException(