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.

A.java 381B

1234567891011
  1. package pkg;
  2. public class A {
  3. }
  4. aspect X {
  5. declare warning: staticinitialization(*) && if(!thisEnclosingJoinPoint.toString().equals("abc")): "Foobar {joinpoint}";
  6. // before(): staticinitialization(*) && if(!thisEnclosingJoinPointStaticPart.getPackage().equals(thisJoinPoint.getPackage())) {}
  7. //declare warning: staticinitialization(*) && if(true): "Foobar {joinpoint}";
  8. }