summaryrefslogtreecommitdiffstats
path: root/src/main/javassist
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2003-10-06 15:20:50 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2003-10-06 15:20:50 +0000
commitc7d2341f4d0d5110a4347458dc4236af704986df (patch)
tree24c4ae79dd5d328a83154653d9da1a9a72ff8051 /src/main/javassist
parentb730655d0d439dee1f7d0ca1ecf9750bee12739d (diff)
downloadjavassist-c7d2341f4d0d5110a4347458dc4236af704986df.tar.gz
javassist-c7d2341f4d0d5110a4347458dc4236af704986df.zip
added CtClass.main().
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@50 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist')
-rw-r--r--src/main/javassist/CtClass.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java
index db289779..61409818 100644
--- a/src/main/javassist/CtClass.java
+++ b/src/main/javassist/CtClass.java
@@ -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";