diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/javassist/CtClass.java | 3 | ||||
-rw-r--r-- | src/main/javassist/bytecode/ClassFile.java | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java index 5fdd3495..a757ef0e 100644 --- a/src/main/javassist/CtClass.java +++ b/src/main/javassist/CtClass.java @@ -553,7 +553,8 @@ public abstract class CtClass { /** * Changes a super class unless this object represents an interface. - * The new super class must be compatible with the old one. + * The new super class must be compatible with the old one; for example, + * it should inherit from the old super class. * * <p>If this object represents an interface, this method is equivalent * to <code>addInterface()</code>; it appends <code>clazz</code> to diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java index 4c6a8fd8..4720d289 100644 --- a/src/main/javassist/bytecode/ClassFile.java +++ b/src/main/javassist/bytecode/ClassFile.java @@ -326,6 +326,7 @@ public final class ClassFile { * Sets the super class. * * <p> + * The new super class should inherit from the old super class. * This method modifies constructors so that they call constructors declared * in the new super class. */ |