Project: AspectJ
Bug 99191 declare @field allowed for non existent fields
Reported: 2005-06-09 12:08:17 | Status: resolved fixed

///// in this code @interface anInterface{} aspect B { declare @field : int B.noSuchField : @anInterface; // should be an error } ////////////////// I don't get an error, even though B.noSuchField doesn't exist. If I try declare @field on NoSuchCLass.noSuchField I do get an error though.

Files changed in fix:
tests/bugs150/pr99191/pr99191_1.java tests/bugs150/pr99191/pr99191_2.java tests/bugs150/pr99191/pr99191_3.java tests/bugs150/pr99191/pr99191_4.java tests/bugs150/pr99191/pr99191_5.java tests/bugs150/pr99191/pr99191_6.java tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java weaver/src/org/aspectj/weaver/bcel/BcelClassWeaver.java