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.

DeclareErrorNamedPointcutCE.java 328B

123456789101112131415161718
  1. // pr 45184
  2. public class DeclareErrorNamedPointcutCE {
  3. public static void main(String[] args) {
  4. new C().run();
  5. }
  6. }
  7. class C {
  8. void run() { } // CW expected here
  9. }
  10. aspect A { pointcut pc(): execution(void run()); }
  11. aspect B {
  12. pointcut ref() : A.pc(); // bug: A.pc() treated as B.pc()
  13. declare error : ref() : "ref";
  14. }