diff options
author | aclement <aclement> | 2008-06-08 21:36:29 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-06-08 21:36:29 +0000 |
commit | 358beefe5e1e0ee7fd2da5b025fd419fcd0a71c1 (patch) | |
tree | cda102b0489704ba5a4bb6a2343675f8507431dd /tests/bugs161 | |
parent | 81ff93b04f951758de1a959a55d486fbe8fe410f (diff) | |
download | aspectj-358beefe5e1e0ee7fd2da5b025fd419fcd0a71c1.tar.gz aspectj-358beefe5e1e0ee7fd2da5b025fd419fcd0a71c1.zip |
test and fix for 226201 - convert return type of generic advice to parameterized type
Diffstat (limited to 'tests/bugs161')
-rw-r--r-- | tests/bugs161/pr226201/IntAspTest.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/bugs161/pr226201/IntAspTest.java b/tests/bugs161/pr226201/IntAspTest.java new file mode 100644 index 000000000..8c7cb28bb --- /dev/null +++ b/tests/bugs161/pr226201/IntAspTest.java @@ -0,0 +1,23 @@ + +abstract aspect GenAsp<T> { + public abstract T transform(T x); + T around() : execution(T *(*)) {return transform(proceed());} +} + +aspect IntAsp extends GenAsp<Integer> { + + public Integer transform(Integer x) {return x;} // identity transformation +} + +public class IntAspTest { + static Integer mylength(String x) {return x.length();} + + public static void main(String[] args) { + try { + System.out.println(mylength("")); + } catch (StackOverflowError soe) { + + } + } +} + |