geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r523079 - /geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/transaction/nodistributedtransactions/NoDTxServerTransactionPolicies.java
Date Tue, 27 Mar 2007 21:10:25 GMT
Author: rickmcguire
Date: Tue Mar 27 14:10:24 2007
New Revision: 523079

URL: http://svn.apache.org/viewvc?view=rev&rev=523079
Log:
GERONIMO-3032 Array bounds problem in NoDTxServerTransactionPolicies.


Modified:
    geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/transaction/nodistributedtransactions/NoDTxServerTransactionPolicies.java

Modified: geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/transaction/nodistributedtransactions/NoDTxServerTransactionPolicies.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/transaction/nodistributedtransactions/NoDTxServerTransactionPolicies.java?view=diff&rev=523079&r1=523078&r2=523079
==============================================================================
--- geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/transaction/nodistributedtransactions/NoDTxServerTransactionPolicies.java
(original)
+++ geronimo/server/trunk/modules/geronimo-corba/src/main/java/org/apache/geronimo/corba/transaction/nodistributedtransactions/NoDTxServerTransactionPolicies.java
Tue Mar 27 14:10:24 2007
@@ -23,8 +23,7 @@
  * @version $Rev: 451417 $ $Date: 2006-09-29 13:13:22 -0700 (Fri, 29 Sep 2006) $
  */
 public class NoDTxServerTransactionPolicies {
-    // toto remove hard coded max when new Openejb snapshots are published
-    private static final OperationTxPolicy[] policies = new OperationTxPolicy[5];
+    private static final OperationTxPolicy[] policies = new OperationTxPolicy[DeploymentInfo.TX_MAX
+ 1];
     static {
         policies[DeploymentInfo.TX_MANDITORY] = Required.INSTANCE;
         policies[DeploymentInfo.TX_NEVER] = NotRequired.INSTANCE;



Mime
View raw message