geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx CollectionProxy.java
Date Sat, 17 Jan 2004 01:07:33 GMT
dain        2004/01/16 17:07:33

  Modified:    modules/kernel/src/java/org/apache/geronimo/gbean/jmx
                        CollectionProxy.java
  Log:
  Fixed bug with generating an object based proxy
  
  Revision  Changes    Path
  1.5       +7 -3      incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx/CollectionProxy.java
  
  Index: CollectionProxy.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx/CollectionProxy.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- CollectionProxy.java	15 Jan 2004 05:36:53 -0000	1.4
  +++ CollectionProxy.java	17 Jan 2004 01:07:33 -0000	1.5
  @@ -125,8 +125,12 @@
           this.gmbean = gmbean;
           this.name = name;
           Enhancer enhancer = new Enhancer();
  -        enhancer.setSuperclass(Object.class);
  -        enhancer.setInterfaces(new Class[]{type});
  +        if (type.isInterface()) {
  +            enhancer.setSuperclass(Object.class);
  +            enhancer.setInterfaces(new Class[]{type});
  +        } else {
  +            enhancer.setSuperclass(type);
  +        }
           enhancer.setCallbackFilter(new InterfaceCallbackFilter(type));
           enhancer.setCallbacks(new SimpleCallbacks());
           enhancer.setClassLoader(type.getClassLoader());
  
  
  

Mime
View raw message