aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/tutorial2.html
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 /tutorial/tutorial2.html
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 'tutorial/tutorial2.html')
-rw-r--r--tutorial/tutorial2.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/tutorial/tutorial2.html b/tutorial/tutorial2.html
index 9655844e..0615edea 100644
--- a/tutorial/tutorial2.html
+++ b/tutorial/tutorial2.html
@@ -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