diff options
Diffstat (limited to 'tests/bugs1920/github_246/App.java')
-rw-r--r-- | tests/bugs1920/github_246/App.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/bugs1920/github_246/App.java b/tests/bugs1920/github_246/App.java new file mode 100644 index 000000000..8e0bbe8bf --- /dev/null +++ b/tests/bugs1920/github_246/App.java @@ -0,0 +1,11 @@ +import java.lang.reflect.Method; +import java.util.Arrays; + +public class App { + public static void main(String[] args) { + for (Method method : App.class.getDeclaredMethods()) { + if (method.getName().equals("foo")) + System.out.println(Arrays.toString(method.getDeclaredAnnotations()) + " " + method); + } + } +} |