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.

World.aj 487B

1234567891011121314151617181920212223
  1. package hello;
  2. public aspect World {
  3. pointcut greeting():
  4. execution(* Hello.sayHello(..));
  5. after() returning: greeting() {
  6. System.out.println(" World!");
  7. }
  8. String.new(Hello c) {
  9. this(h.sayHell());
  10. }
  11. private static void main(String[] args) {
  12. String s = new String(new Hello());
  13. Stystems.substring(0);
  14. }
  15. }
  16. class Hello {
  17. public void sayHell() {}
  18. }