From 4ce545c4fd8136e195f352002fb9c731b92131b5 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 3 Jan 2014 14:40:47 -0700 Subject: [PATCH] add test for d1bdf2f (Class.getMethod bug) I meant to include this in the original commit, but forgot. --- test/Reflection.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Reflection.java b/test/Reflection.java index 53e2bd1b0c..90d3da0eb0 100644 --- a/test/Reflection.java +++ b/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 class Reflection { expect(t.getClass() == InvocationTargetException.class); } } + + expect((Foo.class.getMethod("toString").getModifiers() + & Modifier.PUBLIC) != 0); } }