瀏覽代碼

bug in writing enumvalue


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@177 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
bill 19 年之前
父節點
當前提交
2f50864a52
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/main/javassist/bytecode/annotation/EnumMemberValue.java

+ 2
- 2
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());
}

/**

Loading…
取消
儲存