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.

pr107858.aj 233B

123456789101112
  1. class Foo {
  2. Foo field;
  3. void test() {}
  4. }
  5. public aspect pr107858 {
  6. void around() : call(void Foo.test()) {
  7. Foo foo = new Foo().field;
  8. proceed(foo); // caught at compile time
  9. proceed(new Foo().field); // crashes
  10. }
  11. }