aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/PR328.java
blob: 3597bca5ca23149eefeab21de474065600200700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 {}