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.

123456789101112
  1. public class CantCallConstructorOnAspects {
  2. public static void main(String[] args) {
  3. //ERROR: can't call new on an aspect/of
  4. A a = new A();
  5. }
  6. }
  7. class C {
  8. }
  9. aspect A /*of eachobject(instanceof(C))*/ {
  10. }