aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161/pr226201/IntAspTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs161/pr226201/IntAspTest.java')
-rw-r--r--tests/bugs161/pr226201/IntAspTest.java23
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) {
+
+ }
+ }
+}
+