Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

InvalidReturn.java 420B

123456789101112131415161718192021222324
  1. package errors;
  2. public class InvalidReturn {
  3. public int doNothing() { return 0; }
  4. public static void test() {}
  5. }
  6. aspect C {
  7. pointcut iCut(): this(*) && call(int *(..));
  8. before(): iCut() {
  9. return -1;
  10. }
  11. after(): iCut() {
  12. return 1;
  13. }
  14. after() returning (): iCut() {
  15. return 1;
  16. }
  17. after() throwing (ArithmeticException e): iCut() {
  18. return -1;
  19. }
  20. }