From: bill Date: Wed, 8 Jun 2005 20:25:47 +0000 (+0000) Subject: bug in writing enumvalue X-Git-Tag: rel_3_17_1_ga~447 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2f50864a52f9b042e6d88685caac28294e4bfeac;p=javassist.git bug in writing enumvalue git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@177 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- diff --git a/src/main/javassist/bytecode/annotation/EnumMemberValue.java b/src/main/javassist/bytecode/annotation/EnumMemberValue.java index 44430781..cf6263a7 100644 --- a/src/main/javassist/bytecode/annotation/EnumMemberValue.java +++ b/src/main/javassist/bytecode/annotation/EnumMemberValue.java @@ -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()); } /**