summaryrefslogtreecommitdiffstats
path: root/bcel-builder/src/org
diff options
context:
space:
mode:
authoraclement <aclement>2006-02-14 14:06:36 +0000
committeraclement <aclement>2006-02-14 14:06:36 +0000
commit32fccd359a00bcfcfef4c9ab4a08eb722aee13b7 (patch)
tree7b53ba0dfb77df49ad7ad38e5890fc6250f3625b /bcel-builder/src/org
parent34d6d63fdc7780258fe57d8e50ce9bc4a424583d (diff)
downloadaspectj-32fccd359a00bcfcfef4c9ab4a08eb722aee13b7.tar.gz
aspectj-32fccd359a00bcfcfef4c9ab4a08eb722aee13b7.zip
Bugette: annotation value of primitive type 'char' wasnt working !
Diffstat (limited to 'bcel-builder/src/org')
-rw-r--r--bcel-builder/src/org/aspectj/apache/bcel/classfile/annotation/SimpleElementValue.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/classfile/annotation/SimpleElementValue.java b/bcel-builder/src/org/aspectj/apache/bcel/classfile/annotation/SimpleElementValue.java
index 71eed6a1b..7f1affe33 100644
--- a/bcel-builder/src/org/aspectj/apache/bcel/classfile/annotation/SimpleElementValue.java
+++ b/bcel-builder/src/org/aspectj/apache/bcel/classfile/annotation/SimpleElementValue.java
@@ -133,7 +133,7 @@ public class SimpleElementValue extends ElementValue {
return Integer.toString(b.getBytes());
case PRIMITIVE_CHAR:
ConstantInteger ch = (ConstantInteger)cpool.getConstant(idx,Constants.CONSTANT_Integer);
- return Integer.toString(ch.getBytes());
+ return new Character((char)ch.getBytes()).toString();
case PRIMITIVE_BOOLEAN:
ConstantInteger bo = (ConstantInteger)cpool.getConstant(idx,Constants.CONSTANT_Integer);
if (bo.getBytes() == 0) return "false";