Browse files

add test for d1bdf2f (Class.getMethod bug)

I meant to include this in the original commit, but forgot.
  • Loading branch information...
1 parent d1bdf2f commit 4ce545c4fd8136e195f352002fb9c731b92131b5 @dicej dicej committed Jan 3, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/Reflection.java
View
4 test/Reflection.java
@@ -1,5 +1,6 @@
import java.lang.reflect.Field;
import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.InvocationTargetException;
@@ -232,6 +233,9 @@ public static void main(String[] args) throws Exception {
expect(t.getClass() == InvocationTargetException.class);
}
}
+
+ expect((Foo.class.getMethod("toString").getModifiers()
+ & Modifier.PUBLIC) != 0);
}
}

0 comments on commit 4ce545c

Please sign in to comment.