git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@50 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
on the local host. | on the local host. | ||||
(Or, see <a href="sample/evolve/start.html">sample/evolve/start.html</a>.) | (Or, see <a href="sample/evolve/start.html">sample/evolve/start.html</a>.) | ||||
<h3>8. Hints</h3> | |||||
<h2>Hints</h2> | |||||
<p>To know the version number, type this command: | |||||
<ul><pre> | |||||
% java -jar javassist.jar | |||||
</pre></ul> | |||||
<p>Javassist provides a class file viewer for debugging. For more details, | <p>Javassist provides a class file viewer for debugging. For more details, | ||||
see javassist.Dump. | see javassist.Dump. | ||||
<p>- version 2.7 in October, 2003. | <p>- version 2.7 in October, 2003. | ||||
<ul> | <ul> | ||||
<li>CtClass.main(), which prints the version number, has been added. | |||||
<li>ClassPool.SimpleLoader has been public. | <li>ClassPool.SimpleLoader has been public. | ||||
<li>javassist.bytecode.DeprecatedAttribute has been added. | <li>javassist.bytecode.DeprecatedAttribute has been added. | ||||
<li>javassist.bytecode.LocalVariableAttribute has been added. | <li>javassist.bytecode.LocalVariableAttribute has been added. |
</target> | </target> | ||||
<target name="jar" depends="compile"> | <target name="jar" depends="compile"> | ||||
<jar jarfile="javassist.jar"> | |||||
<jar jarfile="javassist.jar" manifest="${src.dir}/META-INF/MANIFEST.MF"> | |||||
<fileset dir="${build.classes.dir}"> | <fileset dir="${build.classes.dir}"> | ||||
<include name="**/*.class"/> | <include name="**/*.class"/> | ||||
</fileset> | </fileset> |
Manifest-Version: 1.0 | |||||
Manifest-Version: 1.1 | |||||
Specification-Title: Javassist | Specification-Title: Javassist | ||||
Created-By: Shigeru Chiba, Tokyo Institute of Technology | Created-By: Shigeru Chiba, Tokyo Institute of Technology | ||||
Specification-Vendor: Shigeru Chiba, Tokyo Institute of Technology | Specification-Vendor: Shigeru Chiba, Tokyo Institute of Technology | ||||
Specification-Version: 2.7 | Specification-Version: 2.7 | ||||
Name: javassist/ | |||||
Main-Class: javassist.CtClass | |||||
Name: javassist/ |
/** | /** | ||||
* The version number of this release. | * The version number of this release. | ||||
*/ | */ | ||||
public static final String version = "2.7"; | |||||
public static final String version = "2.7 beta 1"; | |||||
/** | |||||
* Prints the version number and the copyright notice. | |||||
*/ | |||||
public static void main(String[] args) { | |||||
System.out.println("Javassist version " + CtClass.version); | |||||
System.out.println("Copyright (C) 1999-2003 Shigeru Chiba." | |||||
+ " All Rights Reserved."); | |||||
} | |||||
static final String javaLangObject = "java.lang.Object"; | static final String javaLangObject = "java.lang.Object"; | ||||