diff options
author | aclement <aclement> | 2008-03-24 19:48:27 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-03-24 19:48:27 +0000 |
commit | 659bd1bd5a03eb975f5bdd2a2c6687d16bf4abca (patch) | |
tree | 935bf3ea8d1ef92f9add4c92394b1c9aa4b2a0fb /tests/bugs160 | |
parent | 79b028d0d40b322500c7a1d6c2951789f69efcd4 (diff) | |
download | aspectj-659bd1bd5a03eb975f5bdd2a2c6687d16bf4abca.tar.gz aspectj-659bd1bd5a03eb975f5bdd2a2c6687d16bf4abca.zip |
214994: generic itds alias NPE: tests and fix
Diffstat (limited to 'tests/bugs160')
-rw-r--r-- | tests/bugs160/pr214994/Broke.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs160/pr214994/Broke.java b/tests/bugs160/pr214994/Broke.java new file mode 100644 index 000000000..fa1052227 --- /dev/null +++ b/tests/bugs160/pr214994/Broke.java @@ -0,0 +1,22 @@ +import java.util.*; + +interface Item {} +interface Container {} +interface CompositeItem<T> {} +interface CompositeContainer<T extends CompositeItem> {} + +public abstract aspect Broke<Item, Container> { + + private C CompositeItem<C>.container; + + public List<I> CompositeContainer<I>.itemList = new ArrayList<I>(); + + public CompositeContainer<I> CompositeContainer<I>.addItem(I i) { + itemList.add(i); + + i.container = this; + + return this; + } + +}
\ No newline at end of file |