aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2017-11-15 03:46:02 +0900
committerchibash <chiba@javassist.org>2017-11-15 03:46:02 +0900
commita64f57f489c4a60dc20d26b34164991181223f21 (patch)
tree67662e6f3631e4aa31da20515bde4005d2dda983 /src/test
parentb86c14888230d12d3844a469e3b34be11dbf4053 (diff)
downloadjavassist-a64f57f489c4a60dc20d26b34164991181223f21.tar.gz
javassist-a64f57f489c4a60dc20d26b34164991181223f21.zip
adds Modifier#isVarArgs()
Diffstat (limited to 'src/test')
-rw-r--r--src/test/javassist/JvstTest5.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/javassist/JvstTest5.java b/src/test/javassist/JvstTest5.java
index 346263cb..e7fdb28c 100644
--- a/src/test/javassist/JvstTest5.java
+++ b/src/test/javassist/JvstTest5.java
@@ -393,4 +393,10 @@ public class JvstTest5 extends JvstTestRoot {
private InnerClassesAttribute getInnerClassAttr(CtClass cc) {
return (InnerClassesAttribute)cc.getClassFile2().getAttribute(InnerClassesAttribute.tag);
}
+
+ public void testVarArgsModifier() throws Exception {
+ CtClass cc = sloader.get("test5.VarArgsMethod");
+ assertTrue(Modifier.isVarArgs(cc.getDeclaredMethod("foo").getModifiers()));
+ assertFalse(Modifier.isVarArgs(cc.getDeclaredMethod("bar").getModifiers()));
+ }
}