]> source.dussan.org Git - javassist.git/commitdiff
updated tutorial so that it says the class names passed to the compiler
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 19 Sep 2003 16:58:46 +0000 (16:58 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 19 Sep 2003 16:58:46 +0000 (16:58 +0000)
must be fully-qualified names.

git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@47 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/ClassPool.java
tutorial/tutorial2.html

index af799a28d1798b1ad4ea888360b0173c5ffe609e..d8fb2df617339de1efe7c4f0a4cabb44452afae6 100644 (file)
@@ -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;
     }
index 9655844e85f0a71892ea441ef35a78fdd91fabff..0615edeae899b3a50e7dbadc4003d1a52934589f 100644 (file)
@@ -1236,6 +1236,13 @@ does not end with a semi colon (<code>;</code>).
 has several limitations with respect to the language that the compiler can
 accept.  Those limitations are:
 
+<p><li>All the class names must be fully qualified (they must include
+package names).  This is because the compiler does not support
+<code>import</code>
+declarations.  However, the <code>java.lang</code> package is an
+exception; for example, the compiler accepts <code>Object</code> as
+well as <code>java.lang.Object</code>.
+
 <p><li>The <code>.class</code> notation is not supported.  Use the
 method <code>Class.forName()</code>.
 In regular