<run class="Test_AroundVarBug"/>
</ajc-test>
+ <ajc-test dir="bugs150" pr="83645"
+ title="pertypewithin on interface">
+ <compile files="PR83645.java"/>
+ <run class="PR83645"/>
+ </ajc-test>
</suite>
--- /dev/null
+
+import org.aspectj.lang.NoAspectBoundException;
+
+interface IP {}
+
+/** @testcase PR83645 pertypewithin on interface */
+public class PR83645 implements IP {
+ public static void main(String[] args) {
+ try {
+ boolean yes = (PT.aspectOf(IP.class) instanceof PT);
+ throw new Error("expected NoAspectBoundException, got instance?: " + yes);
+ } catch (NoAspectBoundException e) {
+ // ok
+ }
+ }
+}
+aspect PT pertypewithin(IP+) {
+ static int INDEX;
+ final int index = INDEX++;
+ public PT() {
+ }
+ public String toString() {
+ return "me " + index;
+ }
+}
\ No newline at end of file