update of javajs package; adds org.apache.harmony, org.xml.sax.helpers
[jalview.git] / src / javajs / util / BinaryDocument.java
index 7ac5a56..73ec57b 100644 (file)
@@ -262,6 +262,7 @@ public class BinaryDocument extends BC implements GenericBinaryDocument {
     return intToFloat(readInt());
   }
 
+  @SuppressWarnings("unused")
   @Override
   public double readDouble() throws IOException {
     /**
@@ -270,14 +271,17 @@ public class BinaryDocument extends BC implements GenericBinaryDocument {
      * 
      * @j2sNative
      * 
-     * this.readByteArray(this.t8, 0, 8);
-     * return this.bytesToDoubleToFloat(this.t8, 0, this.isBigEndian);
-     *  
+     * 
      */
     {
       nBytes += 8;
-      return (isBigEndian ? ioReadDouble() : Double.longBitsToDouble(readLELong()));  
+      if (true)
+        return (isBigEndian ? ioReadDouble()
+            : Double.longBitsToDouble(readLELong()));
     }
+    // this is the JavaScript-only part
+    this.readByteArray(this.t8, 0, 8);
+    return bytesToDoubleToFloat(this.t8, 0, this.isBigEndian);
   }
   
   private double ioReadDouble() throws IOException {