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.

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