]> source.dussan.org Git - aspectj.git/commitdiff
@AJ syntax (pr83626): changes to bcel from Alex
authoraclement <aclement>
Wed, 26 Jan 2005 14:01:30 +0000 (14:01 +0000)
committeraclement <aclement>
Wed, 26 Jan 2005 14:01:30 +0000 (14:01 +0000)
bcel-builder/src/org/aspectj/apache/bcel/generic/MethodGen.java
lib/bcel/bcel-src.zip
lib/bcel/bcel.jar

index 78969c1c2e210754d890c2c7f7a0374548b7d52c..5b66be328f851a7fe8e4ec266d9cb2568ae0853c 100644 (file)
@@ -86,7 +86,7 @@ import org.aspectj.apache.bcel.generic.annotation.AnnotationGen;
  * use the `removeNOPs' method to get rid off them.
  * The resulting method object can be obtained via the `getMethod()' method.
  *
- * @version $Id: MethodGen.java,v 1.2 2004/11/19 16:45:19 aclement Exp $
+ * @version $Id: MethodGen.java,v 1.3 2005/01/26 14:01:30 aclement Exp $
  * @author  <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
  * @author  <A HREF="http://www.vmeng.com/beard">Patrick C. Beard</A> [setMaxStack()]
  * @see     InstructionList
@@ -787,7 +787,10 @@ public class MethodGen extends FieldGenOrMethodGen {
   public Type   getArgumentType(int i)                  { return arg_types[i]; }
 
   public void     setArgumentNames(String[] arg_names) { this.arg_names = arg_names; }
-  public String[] getArgumentNames()                   { return (String[])arg_names.clone(); }
+  public String[] getArgumentNames()                   { 
+       if (arg_names!=null) return (String[])arg_names.clone(); 
+       else                 return new String[0];
+  }
   public void     setArgumentName(int i, String name)     { arg_names[i] = name; }
   public String   getArgumentName(int i)                  { return arg_names[i]; }
 
index 06f9e8d071b61e61dcbe98fc2dee68def5d5a6f2..d2f244dab30a130f2027d4076e5f6b41d121e9cf 100644 (file)
Binary files a/lib/bcel/bcel-src.zip and b/lib/bcel/bcel-src.zip differ
index 0b0dcbeb7ff40f3b57334cf7758c59edc70e4a39..7c5470eda877893518369642fd4ab389fc36afd5 100644 (file)
Binary files a/lib/bcel/bcel.jar and b/lib/bcel/bcel.jar differ