From 2f50864a52f9b042e6d88685caac28294e4bfeac Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 8 Jun 2005 20:25:47 +0000 Subject: [PATCH] bug in writing enumvalue git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@177 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/bytecode/annotation/EnumMemberValue.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } /** -- 2.39.5