Browse Source

final updates for 3.1 release


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@254 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 18 years ago
parent
commit
1e0a593630
3 changed files with 17 additions and 9 deletions
  1. 1
    1
      Readme.html
  2. 10
    7
      src/main/javassist/expr/FieldAccess.java
  3. 6
    1
      src/main/javassist/expr/NewExpr.java

+ 1
- 1
Readme.html View File

@@ -281,7 +281,7 @@ see javassist.Dump.

<h2>Changes</h2>

<p>- version 3.1 on February 22, 2006
<p>- version 3.1 on February 23, 2006

<ul>
<li>getFields(), getMethods(), and getConstructors() in CtClass

+ 10
- 7
src/main/javassist/expr/FieldAccess.java View File

@@ -123,15 +123,18 @@ public class FieldAccess extends Expr {
return super.mayThrow();
}

/*
* Returns the type of the field.

public CtClass getFieldType() throws NotFoundException {
/**
* Returns the signature of the field type.
* The signature is represented by a character string
* called field descriptor, which is defined in the JVM specification.
*
* @see javassist.bytecode.Descriptor#toCtClass(String, ClassPool)
* @since 3.1
*/
public String getSignature() {
int index = iterator.u16bitAt(currentPos + 1);
String type = getConstPool().getFieldrefType(index);
return Descriptor.toCtClass(type, thisClass.getClassPool());
return getConstPool().getFieldrefType(index);
}
*/

/**
* Replaces the method call with the bytecode derived from

+ 6
- 1
src/main/javassist/expr/NewExpr.java View File

@@ -92,7 +92,12 @@ public class NewExpr extends Expr {

/**
* Get the signature of the constructor
*
*
* The signature is represented by a character string
* called method descriptor, which is defined in the JVM specification.
*
* @see javassist.CtBehavior#getSignature()
* @see javassist.bytecode.Descriptor
* @return the signature
*/
public String getSignature() {

Loading…
Cancel
Save