[jboss-svn-commits] JBL Code SVN: r37660 - labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/examples/classes/com/arjuna/jta/distributed/example/server/impl.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Oct 23 16:34:53 EDT 2011
Author: tomjenkinson
Date: 2011-10-23 16:34:53 -0400 (Sun, 23 Oct 2011)
New Revision: 37660
Modified:
labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/examples/classes/com/arjuna/jta/distributed/example/server/impl/ProxyXAResourceRecovery.java
Log:
JBTM-895 read the length as an int rather than byte
Modified: labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/examples/classes/com/arjuna/jta/distributed/example/server/impl/ProxyXAResourceRecovery.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/examples/classes/com/arjuna/jta/distributed/example/server/impl/ProxyXAResourceRecovery.java 2011-10-23 19:12:58 UTC (rev 37659)
+++ labs/jbosstm/branches/JBOSSTS_4_15_0_Final/atsintegration/examples/classes/com/arjuna/jta/distributed/example/server/impl/ProxyXAResourceRecovery.java 2011-10-23 20:34:53 UTC (rev 37660)
@@ -51,7 +51,7 @@
for (int i = 0; i < listFiles.length; i++) {
File file = listFiles[i];
DataInputStream fis = new DataInputStream(new FileInputStream(file));
- int read = fis.read();
+ int read = fis.readInt();
byte[] nameB = new byte[read];
fis.read(nameB, 0, read);
String remoteServerName = new String(nameB);
More information about the jboss-svn-commits
mailing list