commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ozeigerm...@apache.org
Subject cvs commit: jakarta-commons/transaction/src/java/org/apache/commons/transaction/util/xa XidWrapper.java
Date Wed, 05 Jan 2005 18:56:16 GMT
ozeigermann    2005/01/05 10:56:16

  Modified:    transaction/src/java/org/apache/commons/transaction/util/xa
                        XidWrapper.java
  Log:
  Fixed bug that messed up eqauls for wrapped xids in certain containers.
  E.g. JBoss global transaction id might look like [B@94fe42 while its String may look
  like 'Kalinka//22'
  
  Revision  Changes    Path
  1.3       +6 -6      jakarta-commons/transaction/src/java/org/apache/commons/transaction/util/xa/XidWrapper.java
  
  Index: XidWrapper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/transaction/src/java/org/apache/commons/transaction/util/xa/XidWrapper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XidWrapper.java	29 Nov 2004 18:28:17 -0000	1.2
  +++ XidWrapper.java	5 Jan 2005 18:56:16 -0000	1.3
  @@ -53,9 +53,9 @@
           this.xid = xid;
           // do calculations once for performance
           StringBuffer b = new StringBuffer(64);
  -        b.append(xid.getGlobalTransactionId());
  +        b.append(new String(xid.getGlobalTransactionId()));
           if (includeBranch) {
  -            b.append("-").append(xid.getBranchQualifier());
  +            b.append("-").append(new String(xid.getBranchQualifier()));
           }
   
           asString = b.toString();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message