summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2006-02-22 17:45:38 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2006-02-22 17:45:38 +0000
commit1e0a593630a5064296e846ed141eb86ae56f6fe9 (patch)
tree7ca18e63675453c846f8676d52cde203895cc13c /src/main
parentaaea8645bb71bc537e75a1f259eb0f1e7c523c3d (diff)
downloadjavassist-1e0a593630a5064296e846ed141eb86ae56f6fe9.tar.gz
javassist-1e0a593630a5064296e846ed141eb86ae56f6fe9.zip
final updates for 3.1 releaserel_3_1
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@254 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main')
-rw-r--r--src/main/javassist/expr/FieldAccess.java17
-rw-r--r--src/main/javassist/expr/NewExpr.java7
2 files changed, 16 insertions, 8 deletions
diff --git a/src/main/javassist/expr/FieldAccess.java b/src/main/javassist/expr/FieldAccess.java
index 9339d1c5..5cec0db9 100644
--- a/src/main/javassist/expr/FieldAccess.java
+++ b/src/main/javassist/expr/FieldAccess.java
@@ -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
diff --git a/src/main/javassist/expr/NewExpr.java b/src/main/javassist/expr/NewExpr.java
index 19018d3d..510f40d0 100644
--- a/src/main/javassist/expr/NewExpr.java
+++ b/src/main/javassist/expr/NewExpr.java
@@ -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() {