summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Readme.html2
-rw-r--r--build.xml2
-rw-r--r--src/main/javassist/CtClass.java22
3 files changed, 23 insertions, 3 deletions
diff --git a/Readme.html b/Readme.html
index 9b90986c..5b85662f 100644
--- a/Readme.html
+++ b/Readme.html
@@ -255,7 +255,7 @@ see javassist.Dump.
<h2>Changes</h2>
-<p>- version 3.0 beta 3
+<p>- version 3.0 RC1 in September 13, 2004.
<ul>
<li>CtClass.toClass() has been reimplemented. The behavior has been
diff --git a/build.xml b/build.xml
index 9d37a171..7cf28e6a 100644
--- a/build.xml
+++ b/build.xml
@@ -6,7 +6,7 @@
<project name="javassist" default="jar" basedir=".">
- <property name="dist-version" value="javassist-3.0beta2"/>
+ <property name="dist-version" value="javassist-3.0RC1"/>
<property environment="env"/>
<property name="target.jar" value="javassist.jar"/>
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java
index fbb3569a..0e435d78 100644
--- a/src/main/javassist/CtClass.java
+++ b/src/main/javassist/CtClass.java
@@ -35,7 +35,7 @@ public abstract class CtClass {
/**
* The version number of this release.
*/
- public static final String version = "3.0 beta 3";
+ public static final String version = "3.0 RC1";
/**
* Prints the version number and the copyright notice.
@@ -820,7 +820,17 @@ public abstract class CtClass {
* If that attribute is not found in the class file, this
* method returns null.
*
+ * <p>This is a convenient method mainly for obtaining
+ * a user-defined attribute. For dealing with attributes, see the
+ * <code>javassist.bytecode</code> package. For example, the following
+ * expression returns all the attributes of a class file.
+ *
+ * <ul><pre>
+ * getClassFile().getAttributes()
+ * </pre></ul>
+ *
* @param name attribute name
+ * @see javassist.bytecode.AttributeInfo
*/
public byte[] getAttribute(String name) {
return null;
@@ -835,8 +845,18 @@ public abstract class CtClass {
* If there is already an attribute with
* the same name, this method substitutes the new one for it.
*
+ * <p>This is a convenient method mainly for adding
+ * a user-defined attribute. For dealing with attributes, see the
+ * <code>javassist.bytecode</code> package. For example, the following
+ * expression adds an attribute of a class file.
+ *
+ * <ul><pre>
+ * getClassFile().addAttribute(info)
+ * </pre></ul>
+ *
* @param name attribute name
* @param data attribute value
+ * @see javassist.bytecode.AttributeInfo
*/
public void setAttribute(String name, byte[] data) {
checkModify();