jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject svn commit: r897703 - in /jakarta/bcel/trunk/src/main/java/org/apache/bcel/classfile: ParameterAnnotationEntry.java ParameterAnnotations.java
Date Sun, 10 Jan 2010 20:48:00 GMT
Author: tcurdt
Date: Sun Jan 10 20:48:00 2010
New Revision: 897703

URL: http://svn.apache.org/viewvc?rev=897703&view=rev
Log:
https://issues.apache.org/bugzilla/show_bug.cgi?id=47072 by Mattias Ulbrich

fixed dump of ParameterAnnotations


Modified:
    jakarta/bcel/trunk/src/main/java/org/apache/bcel/classfile/ParameterAnnotationEntry.java
    jakarta/bcel/trunk/src/main/java/org/apache/bcel/classfile/ParameterAnnotations.java

Modified: jakarta/bcel/trunk/src/main/java/org/apache/bcel/classfile/ParameterAnnotationEntry.java
URL: http://svn.apache.org/viewvc/jakarta/bcel/trunk/src/main/java/org/apache/bcel/classfile/ParameterAnnotationEntry.java?rev=897703&r1=897702&r2=897703&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/main/java/org/apache/bcel/classfile/ParameterAnnotationEntry.java
(original)
+++ jakarta/bcel/trunk/src/main/java/org/apache/bcel/classfile/ParameterAnnotationEntry.java
Sun Jan 10 20:48:00 2010
@@ -17,6 +17,7 @@
 package org.apache.bcel.classfile;
 
 import java.io.DataInputStream;
+import java.io.DataOutputStream;
 import java.io.IOException;
 import org.apache.bcel.Constants;
 
@@ -74,4 +75,12 @@
     public AnnotationEntry[] getAnnotationEntries() {
         return annotation_table;
     }
+    
+    public void dump(DataOutputStream dos) throws IOException {
+        dos.writeShort(annotation_table_length);
+        for(int i = 0; i < annotation_table_length; i++) {
+            annotation_table[i].dump(dos);
+        }
+    }
 }
+    

Modified: jakarta/bcel/trunk/src/main/java/org/apache/bcel/classfile/ParameterAnnotations.java
URL: http://svn.apache.org/viewvc/jakarta/bcel/trunk/src/main/java/org/apache/bcel/classfile/ParameterAnnotations.java?rev=897703&r1=897702&r2=897703&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/main/java/org/apache/bcel/classfile/ParameterAnnotations.java (original)
+++ jakarta/bcel/trunk/src/main/java/org/apache/bcel/classfile/ParameterAnnotations.java Sun
Jan 10 20:48:00 2010
@@ -17,6 +17,7 @@
 package org.apache.bcel.classfile;
 
 import java.io.DataInputStream;
+import java.io.DataOutputStream;
 import java.io.IOException;
 
 /**
@@ -111,4 +112,15 @@
     public final int getNumParameterAnnotation() {
         return num_parameters;
     }
+    
+    public void dump(DataOutputStream dos) throws IOException
+    {
+        super.dump(dos);
+        dos.writeByte(parameter_annotation_table.length);
+
+        for (int i = 0; i < parameter_annotation_table.length; i++) {
+            parameter_annotation_table[i].dump(dos);
+        }
+
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


Mime
View raw message