User: user57  
  Date: 01/08/03 13:16:03

  Modified:    src/main/org/jboss/ejb/plugins/lock BeanLockSupport.java
  Log:
   o throwing ExceptionInInitializerError after printStackTrace() in static
     initializer.
  
  Revision  Changes    Path
  1.3       +11 -8     jboss/src/main/org/jboss/ejb/plugins/lock/BeanLockSupport.java
  
  Index: BeanLockSupport.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/lock/BeanLockSupport.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BeanLockSupport.java      2001/08/03 20:07:01     1.2
  +++ BeanLockSupport.java      2001/08/03 20:16:03     1.3
  @@ -29,7 +29,7 @@
    *
    * @author <a href="[EMAIL PROTECTED]">Bill Burke</a>
    * @author <a href="[EMAIL PROTECTED]">Marc Fleury</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    *
    * <p><b>Revisions:</b><br>
    *  <p><b>2001/07/29: marcf</b>
  @@ -54,7 +54,7 @@
       * (0 means removing)
       */ 
      protected int refs = 0;
  - 
  +   
      /** The Cachekey corresponding to this Bean */
      protected Object id = null;
    
  @@ -147,11 +147,11 @@
      
      // Private --------------------------------------------------------
      
  -   private static Method getEJBHome;
  -   private static Method getHandle;
  -   private static Method getPrimaryKey;
  -   private static Method isIdentical;
  -   private static Method remove;
  +   private static final Method getEJBHome;
  +   private static final Method getHandle;
  +   private static final Method getPrimaryKey;
  +   private static final Method isIdentical;
  +   private static final Method remove;
      
      static
      {
  @@ -163,8 +163,11 @@
            getPrimaryKey = EJBObject.class.getMethod("getPrimaryKey", noArg);
            isIdentical = EJBObject.class.getMethod("isIdentical", new Class[] 
{EJBObject.class});
            remove = EJBObject.class.getMethod("remove", noArg);
  +      }
  +      catch (Exception e) {
  +         e.printStackTrace();
  +         throw new ExceptionInInitializerError(e);
         }
  -      catch (Exception x) {x.printStackTrace();}
      }
      
      protected boolean isCallAllowed(MethodInvocation mi)
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to