jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From md...@apache.org
Subject cvs commit: jakarta-bcel/src/java/org/apache/bcel/classfile Utility.java
Date Fri, 05 Apr 2002 08:59:39 GMT
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:markus.dahm@berlin.de">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
         }
  
  
  

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


Mime
View raw message