diff options
Diffstat (limited to 'tests/java5/generics/itds/sharing/FieldJ.aj')
-rw-r--r-- | tests/java5/generics/itds/sharing/FieldJ.aj | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/sharing/FieldJ.aj b/tests/java5/generics/itds/sharing/FieldJ.aj new file mode 100644 index 000000000..8633b678e --- /dev/null +++ b/tests/java5/generics/itds/sharing/FieldJ.aj @@ -0,0 +1,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; +} |