Browse Source

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
tags/rel_3_17_1_ga
chiba 21 years ago
parent
commit
93e8b3bf46
2 changed files with 10 additions and 0 deletions
  1. 3
    0
      src/main/javassist/ClassPool.java
  2. 7
    0
      tutorial/tutorial2.html

+ 3
- 0
src/main/javassist/ClassPool.java View File

tail.appendSystemPath(); tail.appendSystemPath();
defaultPool = new ClassPool(tail, t); defaultPool = new ClassPool(tail, t);
} }
else if (defaultPool.translator != t)
throw new RuntimeException(
"has been created with a different translator");


return defaultPool; return defaultPool;
} }

+ 7
- 0
tutorial/tutorial2.html View File

has several limitations with respect to the language that the compiler can has several limitations with respect to the language that the compiler can
accept. Those limitations are: 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 <p><li>The <code>.class</code> notation is not supported. Use the
method <code>Class.forName()</code>. method <code>Class.forName()</code>.
In regular In regular

Loading…
Cancel
Save