diff options
Diffstat (limited to 'src/main/javassist/bytecode/annotation/ClassMemberValue.java')
-rw-r--r-- | src/main/javassist/bytecode/annotation/ClassMemberValue.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/bytecode/annotation/ClassMemberValue.java b/src/main/javassist/bytecode/annotation/ClassMemberValue.java index 19f8560f..6a1bcd85 100644 --- a/src/main/javassist/bytecode/annotation/ClassMemberValue.java +++ b/src/main/javassist/bytecode/annotation/ClassMemberValue.java @@ -101,7 +101,7 @@ public class ClassMemberValue extends MemberValue { public String getValue() { String v = cp.getUtf8Info(valueIndex); try { - return SignatureAttribute.toTypeSignature(v).toString(); + return SignatureAttribute.toTypeSignature(v).jvmTypeName(); } catch (BadBytecode e) { throw new RuntimeException(e); } @@ -121,7 +121,7 @@ public class ClassMemberValue extends MemberValue { * Obtains the string representation of this object. */ public String toString() { - return getValue() + ".class"; + return getValue().replace('$', '.') + ".class"; } /** |