svn commit: r280067 - /jakarta/bcel/trunk/src/java/org/apache/bcel/classfile/ParameterAnnotations.java

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
Author: dbrosius
Date: Sat Sep 10 21:27:01 2005
New Revision: 280067

URL: http://svn.apache.org/viewcvs?rev=280067&view=rev
Log:
the number of parameter annotations is a byte not a short. Thanks - Jan Mönnich

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

Modified: jakarta/bcel/trunk/src/java/org/apache/bcel/classfile/ParameterAnnotations.java
URL: http://svn.apache.org/viewcvs/jakarta/bcel/trunk/src/java/org/apache/bcel/classfile/ParameterAnnotations.java?rev=280067&r1=280066&r2=280067&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/java/org/apache/bcel/classfile/ParameterAnnotations.java (original)
+++ jakarta/bcel/trunk/src/java/org/apache/bcel/classfile/ParameterAnnotations.java Sat Sep 10 21:27:01 2005
@@ -42,7 +42,7 @@
     {

 	    this(parameter_annotation_type, name_index, length, (ParameterAnnotationEntry[]) null, constant_pool);   

 	    

-	    num_parameters = (file.readUnsignedShort());

+	    num_parameters = (file.readUnsignedByte());

 	    parameter_annotation_table = new ParameterAnnotationEntry[num_parameters];

 

 	    for(int i=0; i < num_parameters; i++)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.