[jboss-cvs] jboss-portal/jems/src/main/org/jboss/portal/jems/hibernate ...
Roy Russo
russo at jboss.com
Fri Aug 4 14:57:45 EDT 2006
User: russo
Date: 06/08/04 14:57:45
Modified: jems/src/main/org/jboss/portal/jems/hibernate
ByteArrayBlob.java
Log:
JBPORTAL-978 - done.
Revision Changes Path
1.2 +3 -1 jboss-portal/jems/src/main/org/jboss/portal/jems/hibernate/ByteArrayBlob.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ByteArrayBlob.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/jems/src/main/org/jboss/portal/jems/hibernate/ByteArrayBlob.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- ByteArrayBlob.java 1 Aug 2006 13:57:44 -0000 1.1
+++ ByteArrayBlob.java 4 Aug 2006 18:57:45 -0000 1.2
@@ -33,7 +33,7 @@
/**
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public final class ByteArrayBlob implements Blob
{
@@ -71,7 +71,9 @@
public byte[] getBytes(long pos, int length)
{
byte[] bytes = new byte[length];
- System.arraycopy(_bytes, (int)pos, bytes, 0, length);
+ // Why are we passing in 'pos'? It results in AOOBE.
+ //System.arraycopy(_bytes, (int)pos, bytes, 0, length);
+ System.arraycopy(_bytes, 0, bytes, 0, length);
return bytes;
}
More information about the jboss-cvs-commits
mailing list