]> source.dussan.org Git - javassist.git/commitdiff
fixed a typo.
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Tue, 15 Apr 2008 07:21:49 +0000 (07:21 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Tue, 15 Apr 2008 07:21:49 +0000 (07:21 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@432 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

tutorial/tutorial.html

index b6876d4c6c5692b6eb2f65595c1429ddc2202abd..9e6c836613c31121f4d60fd2d0871a688d25cd3f 100644 (file)
@@ -1043,7 +1043,7 @@ adds a new field <code>hiddenValue</code> to <code>java.lang.String</code>:
 <ul><pre>ClassPool pool = ClassPool.getDefault();
 CtClass cc = pool.get("java.lang.String");
 cc.addField(new CtField(CtClass.intType, "hiddenValue", cc));
-pool.writeFile("java.lang.String", ".");</pre></ul>
+cc.writeFile("java.lang.String", ".");</pre></ul>
 
 <p>This program produces a file <code>"./java/lang/String.class"</code>.