réplica de
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-03 05:54:57 +02:00
19 líneas
585 B
Java
19 líneas
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 {}
|