incubator-vxquery-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject svn commit: r1384150 - /incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/
Date Wed, 12 Sep 2012 22:24:51 GMT
Author: prestonc
Date: Wed Sep 12 22:24:51 2012
New Revision: 1384150

URL: http://svn.apache.org/viewvc?rev=1384150&view=rev
Log:
Castable was using the wrong pointables for unsigned numeric values.

Modified:
    incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/AbstractCastableAsOperation.java
    incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsDoubleOperation.java
    incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsFloatOperation.java
    incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsIntOperation.java
    incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsIntegerOperation.java
    incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsShortOperation.java

Modified: incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/AbstractCastableAsOperation.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/AbstractCastableAsOperation.java?rev=1384150&r1=1384149&r2=1384150&view=diff
==============================================================================
--- incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/AbstractCastableAsOperation.java
(original)
+++ incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/AbstractCastableAsOperation.java
Wed Sep 12 22:24:51 2012
@@ -197,12 +197,12 @@ public abstract class AbstractCastableAs
         dOut.write((byte) 0);
     }
 
-    public void convertUnsignedByte(BytePointable bytep, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedByte(ShortPointable shortp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 0);
     }
 
-    public void convertUnsignedInt(IntegerPointable intp, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedInt(LongPointable longp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 0);
     }
@@ -212,7 +212,7 @@ public abstract class AbstractCastableAs
         dOut.write((byte) 0);
     }
 
-    public void convertUnsignedShort(ShortPointable shortp, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedShort(IntegerPointable intp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 0);
     }

Modified: incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsDoubleOperation.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsDoubleOperation.java?rev=1384150&r1=1384149&r2=1384150&view=diff
==============================================================================
--- incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsDoubleOperation.java
(original)
+++ incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsDoubleOperation.java
Wed Sep 12 22:24:51 2012
@@ -130,12 +130,12 @@ public class CastableAsDoubleOperation e
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedByte(BytePointable bytep, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedByte(ShortPointable shortp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedInt(IntegerPointable intp, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedInt(LongPointable longp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }
@@ -145,7 +145,7 @@ public class CastableAsDoubleOperation e
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedShort(ShortPointable shortp, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedShort(IntegerPointable intp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }

Modified: incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsFloatOperation.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsFloatOperation.java?rev=1384150&r1=1384149&r2=1384150&view=diff
==============================================================================
--- incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsFloatOperation.java
(original)
+++ incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsFloatOperation.java
Wed Sep 12 22:24:51 2012
@@ -130,12 +130,12 @@ public class CastableAsFloatOperation ex
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedByte(BytePointable bytep, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedByte(ShortPointable shortp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedInt(IntegerPointable intp, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedInt(LongPointable longp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }
@@ -145,7 +145,7 @@ public class CastableAsFloatOperation ex
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedShort(ShortPointable shortp, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedShort(IntegerPointable intp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }

Modified: incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsIntOperation.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsIntOperation.java?rev=1384150&r1=1384149&r2=1384150&view=diff
==============================================================================
--- incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsIntOperation.java
(original)
+++ incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsIntOperation.java
Wed Sep 12 22:24:51 2012
@@ -121,12 +121,12 @@ public class CastableAsIntOperation exte
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedByte(BytePointable bytep, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedByte(ShortPointable shortp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedShort(ShortPointable shortp, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedShort(IntegerPointable intp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }

Modified: incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsIntegerOperation.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsIntegerOperation.java?rev=1384150&r1=1384149&r2=1384150&view=diff
==============================================================================
--- incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsIntegerOperation.java
(original)
+++ incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsIntegerOperation.java
Wed Sep 12 22:24:51 2012
@@ -146,12 +146,12 @@ public class CastableAsIntegerOperation 
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedByte(BytePointable bytep, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedByte(ShortPointable shortp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedInt(IntegerPointable intp, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedInt(LongPointable longp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }
@@ -161,7 +161,7 @@ public class CastableAsIntegerOperation 
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedShort(ShortPointable shortp, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedShort(IntegerPointable intp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }

Modified: incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsShortOperation.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsShortOperation.java?rev=1384150&r1=1384149&r2=1384150&view=diff
==============================================================================
--- incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsShortOperation.java
(original)
+++ incubator/vxquery/trunk/vxquery/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/castable/CastableAsShortOperation.java
Wed Sep 12 22:24:51 2012
@@ -115,7 +115,7 @@ public class CastableAsShortOperation ex
         dOut.write((byte) 1);
     }
 
-    public void convertUnsignedByte(BytePointable bytep, DataOutput dOut) throws SystemException,
IOException {
+    public void convertUnsignedByte(ShortPointable shortp, DataOutput dOut) throws SystemException,
IOException {
         dOut.write(ValueTag.XS_BOOLEAN_TAG);
         dOut.write((byte) 1);
     }



Mime
View raw message