summaryrefslogtreecommitdiffstats
path: root/tests/new/PR569/a/IntroAnon.java
blob: 0ede9e901ba2d51393fd329cb57aed4206f02f76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package a;

import org.aspectj.testing.Tester; 

import b.Dest;

/** @testcase PR#569 anon class written to wrong directory */
public class IntroAnon {
    private static aspect MI {
        public Object MyInterface.foo () {
            Tester.event("foo ran");
            return new Object(){};
        }
    }
    public static void main (String args []) {
        Tester.expectEvent("foo ran");
        new Dest ().foo ();
        Tester.checkAllEvents();
    }
} // end of class IntroAnon