aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/ClassPool.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2009-04-04 15:41:55 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2009-04-04 15:41:55 +0000
commitc4b9da1f23695844fc4535ad6b79c0eb59191ae1 (patch)
treef9b15b318d9a40505aa8ee22015b33849993a378 /src/main/javassist/ClassPool.java
parentbead430f64ef930897dc4d25c36b854fec2d3092 (diff)
downloadjavassist-c4b9da1f23695844fc4535ad6b79c0eb59191ae1.tar.gz
javassist-c4b9da1f23695844fc4535ad6b79c0eb59191ae1.zip
for fixing JASSIST-68
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@474 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/ClassPool.java')
-rw-r--r--src/main/javassist/ClassPool.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/javassist/ClassPool.java b/src/main/javassist/ClassPool.java
index f802ed6e..fd099794 100644
--- a/src/main/javassist/ClassPool.java
+++ b/src/main/javassist/ClassPool.java
@@ -724,6 +724,14 @@ public class ClassPool {
* If there already exists a class with the same name, the new class
* overwrites that previous class.
*
+ * <p>If no constructor is explicitly added to the created new
+ * class, Javassist generates constructors and adds it when
+ * the class file is generated. It generates a new constructor
+ * for each constructor of the super class. The new constructor
+ * takes the same set of parameters and invokes the
+ * corresponding constructor of the super class. All the received
+ * parameters are passed to it.
+ *
* @param classname a fully-qualified class name.
* @throws RuntimeException if the existing class is frozen.
*/
@@ -736,6 +744,14 @@ public class ClassPool {
* If there already exists a class/interface with the same name,
* the new class overwrites that previous class.
*
+ * <p>If no constructor is explicitly added to the created new
+ * class, Javassist generates constructors and adds it when
+ * the class file is generated. It generates a new constructor
+ * for each constructor of the super class. The new constructor
+ * takes the same set of parameters and invokes the
+ * corresponding constructor of the super class. All the received
+ * parameters are passed to it.
+ *
* @param classname a fully-qualified class name.
* @param superclass the super class.
* @throws RuntimeException if the existing class is frozen.