選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. }