diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-07-27 14:47:30 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-07-27 14:47:30 +0000 |
commit | f4a78cf275e5a1a8f81fed70d73f6273f6f9150f (patch) | |
tree | 140009f9a173ac910e356f9b38d9e0f0e239f694 /tutorial/tutorial.html | |
parent | af2793e73182bb4f61084d97a62852c6c155dac2 (diff) | |
download | javassist-f4a78cf275e5a1a8f81fed70d73f6273f6f9150f.tar.gz javassist-f4a78cf275e5a1a8f81fed70d73f6273f6f9150f.zip |
updated some javadoc comments.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@119 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'tutorial/tutorial.html')
-rw-r--r-- | tutorial/tutorial.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html index 6dc7ad14..064f8da8 100644 --- a/tutorial/tutorial.html +++ b/tutorial/tutorial.html @@ -434,10 +434,10 @@ and calls <code>say()</code> on that instance. <p>Note that the program above depends on the fact that the <code>Hello</code> class is never loaded before <code>toClass()</code> is invoked. If not, the JVM would load the original -<code>Hello</code> class before <code>toClass()</code> request to load -the modified <code>Hello</code> class. Hence loading the modified -<code>Hello</code> class would be failed. -For example, if +<code>Hello</code> class before <code>toClass()</code> requests to +load the modified <code>Hello</code> class. Hence loading the +modified <code>Hello</code> class would be failed +(<code>LinkageError</code> is thrown). For example, if <code>main()</code> in <code>Test</code> is something like this: <ul><pre> @@ -455,12 +455,12 @@ throws an exception since the class loader cannot load two different versions of the <code>Hello</code> class at the same time. <p><em>If the program is running on some application server such as -JBoss,</em> the context class loader used by <code>toClass()</code> -might be inappropriate. In this case, you would see an unexpected -<code>ClassCastException</code>. To avoid this exception, you must -explicitly give an appropriate class loader to <code>toClass()</code>. -For example, if <code>bean</code> is your session bean object, then the -following code: +JBoss and Tomcat,</em> the context class loader used by +<code>toClass()</code> might be inappropriate. In this case, you +would see an unexpected <code>ClassCastException</code>. To avoid +this exception, you must explicitly give an appropriate class loader +to <code>toClass()</code>. For example, if <code>bean</code> is your +session bean object, then the following code: <ul><pre>CtClass cc = ...; Class c = cc.toClass(bean.getClass().getClassLoader()); |