Browse Source

added CtClass.main().


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@50 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 20 years ago
parent
commit
c7d2341f4d
4 changed files with 22 additions and 5 deletions
  1. 8
    1
      Readme.html
  2. 1
    1
      build.xml
  3. 3
    2
      src/main/META-INF/MANIFEST.MF
  4. 10
    1
      src/main/javassist/CtClass.java

+ 8
- 1
Readme.html View File

@@ -236,7 +236,13 @@ with a web browser running
on the local host.
(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,
see javassist.Dump.
@@ -248,6 +254,7 @@ see javassist.Dump.
<p>- version 2.7 in October, 2003.

<ul>
<li>CtClass.main(), which prints the version number, has been added.
<li>ClassPool.SimpleLoader has been public.
<li>javassist.bytecode.DeprecatedAttribute has been added.
<li>javassist.bytecode.LocalVariableAttribute has been added.

+ 1
- 1
build.xml View File

@@ -61,7 +61,7 @@ to ${build.classes.dir}.</echo>
</target>
<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}">
<include name="**/*.class"/>
</fileset>

+ 3
- 2
src/main/META-INF/MANIFEST.MF View File

@@ -1,7 +1,8 @@
Manifest-Version: 1.0
Manifest-Version: 1.1
Specification-Title: Javassist
Created-By: Shigeru Chiba, Tokyo Institute of Technology
Specification-Vendor: Shigeru Chiba, Tokyo Institute of Technology
Specification-Version: 2.7
Name: javassist/
Main-Class: javassist.CtClass
Name: javassist/

+ 10
- 1
src/main/javassist/CtClass.java View File

@@ -35,7 +35,16 @@ public abstract class CtClass {
/**
* 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";


Loading…
Cancel
Save