djencks     2005/02/04 19:49:46

  Modified:    modules/core/src/java/org/openejb EJBInvocationImpl.java
  Log:

  Add some basic sanity check assertions
  
  Revision  Changes    Path
  1.4       +7 -1      
openejb/modules/core/src/java/org/openejb/EJBInvocationImpl.java
  
  Index: EJBInvocationImpl.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/EJBInvocationImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- EJBInvocationImpl.java    18 Jul 2004 22:32:19 -0000      1.3
  +++ EJBInvocationImpl.java    5 Feb 2005 00:49:46 -0000       1.4
  @@ -80,6 +80,8 @@
       }
   
       public EJBInvocationImpl(EJBInterfaceType type, int index, Object[] 
arguments) {
  +        assert type != null;
  +        assert index >= 0;
           this.type = type;
           this.index = index;
           this.arguments = arguments;
  @@ -87,6 +89,8 @@
       }
   
       public EJBInvocationImpl(EJBInterfaceType type, Object id, int index, 
Object[] arguments) {
  +        assert type != null;
  +        assert index >= 0;
           this.type = type;
           this.index = index;
           this.arguments = arguments;
  @@ -94,6 +98,8 @@
       }
   
       public EJBInvocationImpl(int index, Object[] arguments, 
EJBInstanceContext instanceContext) {
  +        assert index >= 0;
  +        assert instanceContext != null;
           this.type = EJBInterfaceType.LIFECYCLE;
           this.index = index;
           this.arguments = arguments;
  
  
  

Reply via email to