]> source.dussan.org Git - javassist.git/commitdiff
bug in writing enumvalue
authorbill <bill@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Wed, 8 Jun 2005 20:25:47 +0000 (20:25 +0000)
committerbill <bill@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Wed, 8 Jun 2005 20:25:47 +0000 (20:25 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@177 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/bytecode/annotation/EnumMemberValue.java

index 44430781312ca3797e3ab0aea2240b993305010d..cf6263a76944d2f59ff6bf7c0cb71988ee034e3e 100644 (file)
@@ -15,9 +15,9 @@
 
 package javassist.bytecode.annotation;
 
+import java.io.IOException;
 import javassist.bytecode.ConstPool;
 import javassist.bytecode.Descriptor;
-import java.io.IOException;
 
 /**
  * Enum constant value.
@@ -92,7 +92,7 @@ public class EnumMemberValue extends MemberValue {
      * Writes the value.
      */
     public void write(AnnotationsWriter writer) throws IOException {
-        writer.enumConstValue(getType(), getValue());
+        writer.enumConstValue(cp.getUtf8Info(typeIndex), getValue());
     }
 
     /**