geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/ejb GeronimoSessionContext.java
Date Mon, 18 Aug 2003 01:05:15 GMT
jboynes     2003/08/17 18:05:14

  Modified:    modules/core/src/java/org/apache/geronimo/ejb
                        GeronimoSessionContext.java
  Log:
  Typo in setRollbackOnly messages (from Aaron Mulder)
  
  Revision  Changes    Path
  1.5       +4 -4      incubator-geronimo/modules/core/src/java/org/apache/geronimo/ejb/GeronimoSessionContext.java
  
  Index: GeronimoSessionContext.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/ejb/GeronimoSessionContext.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- GeronimoSessionContext.java	15 Aug 2003 14:12:19 -0000	1.4
  +++ GeronimoSessionContext.java	18 Aug 2003 01:05:14 -0000	1.5
  @@ -172,15 +172,15 @@
   
       public void setRollbackOnly() throws IllegalStateException {
           if (userTransaction != null) {
  -            throw new IllegalStateException("getRollbackOnly is not allowed for beans with
bean-managed transaction demarcation.");
  +            throw new IllegalStateException("setRollbackOnly is not allowed for beans with
bean-managed transaction demarcation.");
           }
   //        if (!state.equals("method-ready")) {
  -//            throw new IllegalStateException("getRollbackOnly is only allowed in the method
ready state");
  +//            throw new IllegalStateException("setRollbackOnly is only allowed in the method
ready state");
   //        }
   
           try {
               if (transactionManager.getStatus() == Status.STATUS_NO_TRANSACTION) {
  -                throw new IllegalStateException("getRollbackOnly is only allowed during
a transaction");
  +                throw new IllegalStateException("setRollbackOnly is only allowed during
a transaction");
               }
               transactionManager.setRollbackOnly();
           } catch (SystemException e) {
  
  
  

Mime
View raw message