Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

BadBinding.java 685B

12345678910111213141516171819202122
  1. aspect A2 {
  2. after(Object thisObject1): target(thisObject) { // ERR unbound
  3. }
  4. after(Object o1, Object o2): target(o1) || target(o2) { // ERR inconsistent
  5. }
  6. after(Object o1, Object o2): target(o1) && target(o2) { // NO PROB
  7. }
  8. after(Object o1): target(o1) && target(o1) { // ERR multiple
  9. }
  10. after(Object o1): !target(o1) { // ERR can't bind here
  11. }
  12. void around(Object o1): target(o1) {
  13. proceed(2); //ERR can't convert from int to Object
  14. }
  15. void around(Object o1): target(o1) {
  16. proceed(null, 2); //ERR wrong number of args
  17. }
  18. void around(Object o1): target(o1) {
  19. proceed(); //ERR wrong number of args
  20. }
  21. }