aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2003-09-19 16:58:46 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2003-09-19 16:58:46 +0000
commit93e8b3bf46875fd610f961b3fa529886ba6f99aa (patch)
tree7534100ce94e7d42577729e53a38be27851df6b8 /src/main/javassist
parentcb8289a695f07fc5cd9e41fdddb0551d988cad0f (diff)
downloadjavassist-93e8b3bf46875fd610f961b3fa529886ba6f99aa.tar.gz
javassist-93e8b3bf46875fd610f961b3fa529886ba6f99aa.zip
updated tutorial so that it says the class names passed to the compiler
must be fully-qualified names. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@47 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist')
-rw-r--r--src/main/javassist/ClassPool.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/javassist/ClassPool.java b/src/main/javassist/ClassPool.java
index af799a28..d8fb2df6 100644
--- a/src/main/javassist/ClassPool.java
+++ b/src/main/javassist/ClassPool.java
@@ -174,6 +174,9 @@ public class ClassPool {
tail.appendSystemPath();
defaultPool = new ClassPool(tail, t);
}
+ else if (defaultPool.translator != t)
+ throw new RuntimeException(
+ "has been created with a different translator");
return defaultPool;
}