summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/sharing/FieldJ.aj
blob: 8633b678e342a5e262472a00dcdcd3b28b7e7a57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// This test covers something that arose whilst working on specifying
// ITDs on generic interfaces (which must be picked up by the top most
// implementing types).  Here we check that a simple ITD on a generic
// interface works when the implementing class just references it in
// its raw form (see class 'One' below)
import java.util.*;

public class FieldJ {
  public static void main(String []argv) {
    One o = new One();
    o.i = new ArrayList();
  }
}

interface I<N extends Number> { }

class One implements I {}

aspect X {
  public List I.i;
}