[jboss-cvs] javassist/src/main/javassist/bytecode/annotation ...
Shigeru Chiba
chiba at is.titech.ac.jp
Sun Aug 13 12:49:43 EDT 2006
User: chiba
Date: 06/08/13 12:49:43
Modified: src/main/javassist/bytecode/annotation
ClassMemberValue.java Annotation.java
Log:
fixed a bug in write() in Annotation and ClassMemberValue
Revision Changes Path
1.14 +1 -1 javassist/src/main/javassist/bytecode/annotation/ClassMemberValue.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ClassMemberValue.java
===================================================================
RCS file: /cvsroot/jboss/javassist/src/main/javassist/bytecode/annotation/ClassMemberValue.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- ClassMemberValue.java 18 Jul 2006 01:02:11 -0000 1.13
+++ ClassMemberValue.java 13 Aug 2006 16:49:43 -0000 1.14
@@ -120,7 +120,7 @@
* Writes the value.
*/
public void write(AnnotationsWriter writer) throws IOException {
- writer.classInfoIndex(valueIndex);
+ writer.classInfoIndex(cp.getUtf8Info(valueIndex));
}
/**
1.6 +3 -2 javassist/src/main/javassist/bytecode/annotation/Annotation.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Annotation.java
===================================================================
RCS file: /cvsroot/jboss/javassist/src/main/javassist/bytecode/annotation/Annotation.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- Annotation.java 25 Aug 2005 05:08:04 -0000 1.5
+++ Annotation.java 13 Aug 2006 16:49:43 -0000 1.6
@@ -289,12 +289,13 @@
* @param writer the output.
*/
public void write(AnnotationsWriter writer) throws IOException {
+ String typeName = pool.getUtf8Info(typeIndex);
if (members == null) {
- writer.annotation(typeIndex, 0);
+ writer.annotation(typeName, 0);
return;
}
- writer.annotation(typeIndex, members.size());
+ writer.annotation(typeName, members.size());
Iterator it = members.values().iterator();
while (it.hasNext()) {
Pair pair = (Pair)it.next();
More information about the jboss-cvs-commits
mailing list