Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122
  1. interface Interface {}
  2. abstract class Parent {}
  3. class Child extends Parent implements Interface {}
  4. public aspect pr102212 {
  5. // illegal modifier combination not caught by ajc
  6. public abstract synchronized void Parent._abstract();
  7. public synchronized void Child._abstract() {}
  8. // the following is legal - it's a default implementation....
  9. public /* implicit abstract */ synchronized void Interface._interface() {}
  10. // use Child to make java complain: "illegal modifiers: 0x421"
  11. // (this corresponds to "public abstract synchronized")
  12. public static void main(String[] args) {
  13. new Child();
  14. }
  15. }