From 526dd574d96a49722354014eda2bb504028ebe10 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 25 Oct 2013 13:26:50 -0500 Subject: [PATCH] Add the Method#isVarArgs method Required by bleeding-edge Beanshell... Signed-off-by: Johannes Schindelin --- classpath/java/lang/reflect/Method.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classpath/java/lang/reflect/Method.java b/classpath/java/lang/reflect/Method.java index 8f04e7bf2b..51a64c905c 100644 --- a/classpath/java/lang/reflect/Method.java +++ b/classpath/java/lang/reflect/Method.java @@ -138,4 +138,8 @@ public class Method extends AccessibleObject implements Member { public Annotation[] getDeclaredAnnotations() { return getAnnotations(); } + + public boolean isVarArgs() { + return (getModifiers() & 0x80) != 0; + } }