diff options
Diffstat (limited to 'tests/new/PR328.java')
-rw-r--r-- | tests/new/PR328.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/new/PR328.java b/tests/new/PR328.java new file mode 100644 index 000000000..3597bca5c --- /dev/null +++ b/tests/new/PR328.java @@ -0,0 +1,18 @@ +import java.lang.reflect.*; + +public class PR328 { + public static void main(String[] args) { + new PR328().realMain(args); + } + public void realMain(String[] args) { + try { + Class modest = Class.forName("Modest"); + int modifiers = modest.getModifiers(); + boolean isPublic = (modifiers & Modifier.PUBLIC) != 0; + org.aspectj.testing.Tester.check(!isPublic, "Modest shouldn't be public"); + } catch (Throwable t) { + org.aspectj.testing.Tester.check(false, "Thrown: " + t); + } + } +} +class Modest {} |