aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/bugs/lists/case4/IdentifiableAspect.java
blob: 26b162f69e1fc01eba509876c568a8552120d1c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public aspect IdentifiableAspect {
    declare parents: Bean implements LongIdentifiable;

    private T Identifiable<T>.m_id;

    public T Identifiable<T>.getId() {
        return m_id;
    }

    public void Identifiable<T>.setId(T id) {
        m_id= id;
    }

  public static void main(String []argv) {
    Bean b = new Bean();
    b.setId(37L);
    long l = b.getId();
    if (l!=37L) throw new RuntimeException("id should be 37");
  }
}