From: chiba Date: Sun, 7 Dec 2008 07:17:53 +0000 (+0000) Subject: for fixing JASSIST-70 X-Git-Tag: rel_3_17_1_ga~183 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df66d916e0adcfb7245be6fc032ad4ae2969468d;p=javassist.git for fixing JASSIST-70 git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@463 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- diff --git a/Readme.html b/Readme.html index 9feca8dc..69f91454 100644 --- a/Readme.html +++ b/Readme.html @@ -281,6 +281,12 @@ see javassist.Dump.

Changes

+

-version 3.10 + +

+

-version 3.9 on October 9, 2008


diff --git a/tutorial/tutorial3.html b/tutorial/tutorial3.html index 418ef719..4d7d2e27 100644 --- a/tutorial/tutorial3.html +++ b/tutorial/tutorial3.html @@ -24,6 +24,8 @@

6. Generics +

7. J2ME +


@@ -285,6 +287,29 @@ public Object get() { return value; }


+

7. J2ME

+ +

If you modify a class file for the J2ME execution environment, +you must perform preverification. Preverifying is basically +producing a stack map table, which was introduced into J2SE at JDK 1.6. +However, Javassist does not automatically produce a stack map table +for class files compiled by the J2ME compiler. You have to manually +produce stack map tables for the modified methods. + +

For a given method represented by a CtMethod object m, +you can produce a stack map table by calling the following methods: + +

+ +

Here, cpool is a ClassPool object, which is +available by calling getClassPool() on a CtClass +object. A ClassPool object is responsible for finding +class files from given class pathes. + +


+ Previous page