您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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