[jboss-cvs] javassist/tutorial ...

Shigeru Chiba chiba at is.titech.ac.jp
Sun Dec 7 02:17:51 EST 2008


  User: chiba   
  Date: 08/12/07 02:17:51

  Modified:    tutorial   tutorial3.html tutorial.html
  Log:
  for fixing JASSIST-70
  
  Revision  Changes    Path
  1.10      +25 -0     javassist/tutorial/tutorial3.html
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: tutorial3.html
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/tutorial/tutorial3.html,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- tutorial3.html	24 May 2007 07:46:56 -0000	1.9
  +++ tutorial3.html	7 Dec 2008 07:17:51 -0000	1.10
  @@ -24,6 +24,8 @@
   
   <p><a href="#generics">6. Generics</a>
   
  +<p><a href="#j2me">7. J2ME</a>
  +
   <p><br>
   
   <a name="intro">
  @@ -285,6 +287,29 @@
   
   <p><br>
   
  +<h2><a name="j2me">7. J2ME</a></h2>
  +
  +<p>If you modify a class file for the J2ME execution environment,
  +you must perform <it>preverification</it>.  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.
  +
  +<p>For a given method represented by a <code>CtMethod</code> object <code>m</code>,
  +you can produce a stack map table by calling the following methods:
  +
  +<ul><pre>
  +m.getMethodInfo().rebuildStackMap(cpool);
  +</pre></ul>
  +
  +<p>Here, <code>cpool</code> is a <code>ClassPool</code> object, which is
  +available by calling <code>getClassPool()</code> on a <code>CtClass</code>
  +object.  A <code>ClassPool</code> object is responsible for finding
  +class files from given class pathes.
  +
  +<p><br>
  +
   <a href="tutorial2.html">Previous page</a>
   
   <hr>
  
  
  
  1.35      +1 -0      javassist/tutorial/tutorial.html
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: tutorial.html
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/tutorial/tutorial.html,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -b -r1.34 -r1.35
  --- tutorial.html	21 Apr 2008 15:09:42 -0000	1.34
  +++ tutorial.html	7 Dec 2008 07:17:51 -0000	1.35
  @@ -24,6 +24,7 @@
   <br>4. <a href="tutorial2.html#intro">Introspection and customization</a>
   <br>5. <a href="tutorial3.html#intro">Bytecode level API</a>
   <br>6. <a href="tutorial3.html#generics">Generics</a>
  +<br>7. <a href="tutorial3.html#j2me">J2ME</a>
   </ul>
   
   <p><br>
  
  
  



More information about the jboss-cvs-commits mailing list