aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental/PR119570/base/bugsOtherPackage/NodeImpl.java
blob: 95911d31f9e8a687883513cd103a382e06525b1b (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; 
    }
}