aboutsummaryrefslogtreecommitdiffstats
path: root/jquery/jquery-1.2.5.js
stat options
Period:
Authors:

Commits per author per week (path 'jquery/jquery-1.2.5.js')

AuthorW17 2025W18 2025W19 2025W20 2025Total
Total00000
/a> 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
import org.aspectj.testing.*;

import java.util.Vector;

/** @testcase PR#685 subaspect method declaration on superaspect inner interface (types) */
public class InnerInterfaceTypes {
    public static void main (String[] args) {
        Object o = new C().getThis();
        Tester.check(null != o, 
                     "null != new C().getThis()");
        ConcreteAspect cc = ConcreteAspect.aspectOf();
        Tester.check(null != cc, 
                     "null != ConcreteAspect.aspectOf()");
        Object p = cc.getField();
        Tester.check(null != p, "null != cc.getField()");
    } 
}
class C implements AbstractAspect.InnerInterface {}

abstract aspect AbstractAspect {    
    /** bug iff interface defined in abstract aspect 
     * - not outer or subaspect 
     */
    interface InnerInterface {}
    
    private Object privateField = new Object();

    Object getField() {
        return new Vector();  // bad CE: "type name not found"
    }
}