djencks     2005/10/23 21:21:03

  Modified:    modules/core/src/java/org/openejb/client
                        CgLibProxyFactory.java
  Log:

  GERONIMO-1062.  Fix equals/hashcode for callback filter
  
  Revision  Changes    Path
  1.6       +25 -1     
openejb/modules/core/src/java/org/openejb/client/CgLibProxyFactory.java
  
  Index: CgLibProxyFactory.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/client/CgLibProxyFactory.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CgLibProxyFactory.java    4 Jun 2004 22:19:32 -0000       1.5
  +++ CgLibProxyFactory.java    24 Oct 2005 01:21:03 -0000      1.6
  @@ -128,6 +128,30 @@
                   return 1;
               }
           }
  +        
  +        public boolean equals(Object other) {
  +            if (other == null) {
  +                return false;
  +            }
  +            if (other == this) {
  +                return true;
  +            }
  +
  +            NoOverrideCallbackFilter otherFilter = null;
  +            if (other instanceof NoOverrideCallbackFilter) {
  +                otherFilter = (NoOverrideCallbackFilter) other;
  +            } else {
  +                return false;
  +            }
  +
  +            return superClass.equals(otherFilter.superClass);
  +        }
  +
  +        public int hashCode() {
  +            return superClass.hashCode();
  +        }
  +
  +
       }
   
   }
  
  
  

Reply via email to