cvs commit: jakarta-bcel/src/java/org/apache/bcel/classfile Utility.java

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
mdahm       02/04/05 00:59:39

  Modified:    src/java/org/apache/bcel/classfile Utility.java
  Log:
  long, double take two
  
  Revision  Changes    Path
  1.4       +8 -3      jakarta-bcel/src/java/org/apache/bcel/classfile/Utility.java
  
  Index: Utility.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bcel/src/java/org/apache/bcel/classfile/Utility.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Utility.java	11 Mar 2002 17:19:49 -0000	1.3
  +++ Utility.java	5 Apr 2002 08:59:39 -0000	1.4
  @@ -63,7 +63,7 @@
   /**
    * Utility functions that do not really belong to any class in particular.
    *
  - * @version $Id: Utility.java,v 1.3 2002/03/11 17:19:49 mdahm Exp $
  + * @version $Id: Utility.java,v 1.4 2002/04/05 08:59:39 mdahm Exp $
    * @author  <A HREF="mailto:[email protected]">M. Dahm</A>
    */
   public abstract class Utility {
  @@ -702,7 +702,8 @@
         index = 1; // current string position
   
         while(signature.charAt(index) != ')') {
  -	buf.append(signatureToString(signature.substring(index), chopit));
  +	String param_type = signatureToString(signature.substring(index), chopit);
  +	buf.append(param_type);
   
   	if(vars != null) {
   	  LocalVariable l = vars.getLocalVariable(var_index);
  @@ -712,7 +713,11 @@
   	} else
   	  buf.append(" arg" + var_index);
   
  -	var_index++;
  +	if("double".equals(param_type) || "long".equals(param_type))
  +	  var_index += 2;
  +	else
  +	  var_index++;
  +
   	buf.append(", ");
   	index += consumed_chars; // update position
         }
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.