aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-11-02 17:03:26 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-11-02 17:03:26 +0000
commit30ea2357da95ebda1d7b28fb3027bb8694b55614 (patch)
treeefa84d27594fbc4eaf2f928f4496da96fb0d1137 /tutorial
parent6dfecfeff49e85ccb241243b5132ea9af718ce02 (diff)
downloadjavassist-30ea2357da95ebda1d7b28fb3027bb8694b55614.tar.gz
javassist-30ea2357da95ebda1d7b28fb3027bb8694b55614.zip
synchronized statement support.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@146 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/tutorial2.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/tutorial/tutorial2.html b/tutorial/tutorial2.html
index 778f44ee..7ef1fedb 100644
--- a/tutorial/tutorial2.html
+++ b/tutorial/tutorial2.html
@@ -1359,6 +1359,16 @@ value. This source text can be any Java expression if the result type
of the expression matches the type of the field. Note that an expression
does not end with a semi colon (<code>;</code>).
+<p>Furthermore, the above code can be rewritten into the following
+simple code:
+
+<ul><pre>
+CtClass point = ClassPool.getDefault().get("Point");
+CtField f = CtField.make("public int z = 0;", point);
+point.addField(f);
+</pre></ul>
+
+
<p><br>
<a name="runtime">
@@ -1395,8 +1405,6 @@ supported.
<p><li>Inner classes or anonymous classes are not supported.
-<p><li><code>synchronized</code> statements are not supported yet.
-
<p><li>Labeled <code>continue</code> and <code>break</code> statements
are not supported.