鏡像自
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 17:58:43 +02:00
19 行
585 B
Java
19 行
585 B
Java
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 {}
|