aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr119570/NodeImpl.java
blob: 68c4860583db128a5888ea2bfcce2117db6d35e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package bugsOtherPackage;

import java.util.ArrayList;

public abstract aspect NodeImpl<Parent, Child> {

    declare parents : Child implements INode<Parent, Child>;
    declare parents : Parent implements INode<Parent, Child>;

    private final ArrayList<INode> INode.fChildren = new ArrayList<INode>();

    // are you not supposed to use type parameters here?
    private INode<Parent, Child> INode.fParent;
    public final INode<Parent, Child> INode.getParent() {
        return fParent;
    }
    public final boolean INode.setParent(INode<Parent, Child> newParent) {
        fParent = newParent;
        return true;
    }
}