Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

add test for d1bdf2f (Class.getMethod bug) #152

Merged
merged 1 commit into from

2 participants

@dicej
Owner

I meant to include this in the original commit, but forgot.

@dicej dicej add test for d1bdf2f (Class.getMethod bug)
I meant to include this in the original commit, but forgot.
4ce545c
@joshuawarner32 joshuawarner32 merged commit ade2e8e into ReadyTalk:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 3, 2014
  1. @dicej

    add test for d1bdf2f (Class.getMethod bug)

    dicej authored
    I meant to include this in the original commit, but forgot.
This page is out of date. Refresh to see the latest.
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);
}
}
Something went wrong with that request. Please try again.