changeset 11288:211a40a877db

8061826: Part of JDK-8060474 should be reverted Reviewed-by: mullan, ahgross
author weijun
date Thu, 23 Oct 2014 07:07:16 +0800
parents aaeab7d05999
children 6c16bc68f187
files src/java.security.jgss/share/classes/sun/security/krb5/internal/ktab/KeyTabInputStream.java src/java.security.jgss/share/classes/sun/security/krb5/internal/util/KrbDataInputStream.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.security.jgss/share/classes/sun/security/krb5/internal/ktab/KeyTabInputStream.java	Tue Oct 21 22:37:17 2014 +0800
+++ b/src/java.security.jgss/share/classes/sun/security/krb5/internal/ktab/KeyTabInputStream.java	Thu Oct 23 07:07:16 2014 +0800
@@ -58,7 +58,7 @@
      * Reads the number of bytes this entry data occupy.
      */
     int readEntryLength() throws IOException {
-        return readLength4();
+        return read(4);
     }
 
 
--- a/src/java.security.jgss/share/classes/sun/security/krb5/internal/util/KrbDataInputStream.java	Tue Oct 21 22:37:17 2014 +0800
+++ b/src/java.security.jgss/share/classes/sun/security/krb5/internal/util/KrbDataInputStream.java	Thu Oct 23 07:07:16 2014 +0800
@@ -82,7 +82,7 @@
         byte[] bytes = new byte[num];
         if (read(bytes, 0, num) != num) {
             throw new IOException("Premature end of stream reached");
-        };
+        }
         int result = 0;
         for (int i = 0; i < num; i++) {
             if (bigEndian) {