[jboss-cvs] javassist/src/main/javassist ...

Shigeru Chiba chiba at is.titech.ac.jp
Mon Aug 13 22:08:01 EDT 2007


  User: chiba   
  Date: 07/08/13 22:08:01

  Modified:    src/main/javassist  CtNewClass.java
  Log:
  fixed a bug of ClassPool#makeInterface()
  
  Revision  Changes    Path
  1.13      +3 -1      javassist/src/main/javassist/CtNewClass.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CtNewClass.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/CtNewClass.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- CtNewClass.java	8 Jun 2007 13:32:10 -0000	1.12
  +++ CtNewClass.java	14 Aug 2007 02:08:01 -0000	1.13
  @@ -29,12 +29,14 @@
           super(name, cp);
           wasChanged = true;
           String superName;
  -        if (superclass == null)
  +        if (isInterface || superclass == null)
               superName = null;
           else
               superName = superclass.getName();
   
           classfile = new ClassFile(isInterface, name, superName);
  +        if (isInterface && superclass != null)
  +            classfile.setInterfaces(new String[] { superclass.getName() });
   
           setModifiers(Modifier.setPublic(getModifiers()));
           hasConstructor = isInterface;
  
  
  



More information about the jboss-cvs-commits mailing list