You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProtectedIntro.java 365B

123456789101112131415
  1. public class ProtectedIntro {
  2. public static void main(String[] args) {
  3. new ProtectedIntro().realMain(args);
  4. }
  5. public void realMain(String[] args) {
  6. org.aspectj.testing.Tester.check(false, "shouldn't have compiled");
  7. }
  8. public ProtectedIntro() {
  9. }
  10. }
  11. class C {}
  12. aspect A {
  13. protected void C.foo() {}; // can't do this
  14. }