From: aclement Date: Wed, 26 Jan 2005 14:01:30 +0000 (+0000) Subject: @AJ syntax (pr83626): changes to bcel from Alex X-Git-Tag: Root_AspectJ5_Development~64 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7b4c7d7befe53b132713ba8a5b32729344fbd62e;p=aspectj.git @AJ syntax (pr83626): changes to bcel from Alex --- diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/MethodGen.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/MethodGen.java index 78969c1c2..5b66be328 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/generic/MethodGen.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/MethodGen.java @@ -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 M. Dahm * @author Patrick C. Beard [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]; } diff --git a/lib/bcel/bcel-src.zip b/lib/bcel/bcel-src.zip index 06f9e8d07..d2f244dab 100644 Binary files a/lib/bcel/bcel-src.zip and b/lib/bcel/bcel-src.zip differ diff --git a/lib/bcel/bcel.jar b/lib/bcel/bcel.jar index 0b0dcbeb7..7c5470eda 100644 Binary files a/lib/bcel/bcel.jar and b/lib/bcel/bcel.jar differ