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.

pr124999.aj 415B

123456789101112131415161718192021222324252627
  1. abstract aspect GenericInheritedMethod<T> {
  2. protected T getSomething() {
  3. return null;
  4. }
  5. }
  6. aspect pr124999 extends GenericInheritedMethod<Integer> {
  7. // Runtime Error
  8. void around() : execution(void someMethod()) {
  9. System.out.println(getSomething());
  10. }
  11. public static void main(String[] args) {
  12. new C().someMethod();
  13. }
  14. }
  15. class C {
  16. public void someMethod() { }
  17. }