From ecb71c75155bdd2990141314db777348fdf313ff Mon Sep 17 00:00:00 2001 From: chiba Date: Tue, 22 Nov 2005 16:51:12 +0000 Subject: added some methods to javassist.Bytecode and Descriptor. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@225 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- tutorial/tutorial.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tutorial') diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html index f3766d43..b1541770 100644 --- a/tutorial/tutorial.html +++ b/tutorial/tutorial.html @@ -184,6 +184,7 @@ for that purpose. It stops pruning, write a class file, defrost it, and turn pruning on again (if it was initially on). +

Class search path

The default ClassPool returned @@ -328,6 +329,11 @@ cc.detach();

You must not call any method on that CtClass object after detach() is called. +However, you can call get() on ClassPool +to make a new instance of CtClass representing +the same class. If you call get(), the ClassPool +reads a class file again and newly creates a CtClass +object, which is returned by get().

Another idea is to occasionally replace a ClassPool with -- cgit v1.2.3