diff options
author | aclement <aclement> | 2005-12-08 15:32:36 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-12-08 15:32:36 +0000 |
commit | f5f36e2dd0f1318f44397f691c480967c57dbfb4 (patch) | |
tree | e9ae0715897d34186371c6659df672a705697907 /tests/bugs150 | |
parent | 94159f9e80233497e02899c91a126ea5a3b605cc (diff) | |
download | aspectj-f5f36e2dd0f1318f44397f691c480967c57dbfb4.tar.gz aspectj-f5f36e2dd0f1318f44397f691c480967c57dbfb4.zip |
testcode for 119210
Diffstat (limited to 'tests/bugs150')
-rw-r--r-- | tests/bugs150/pr119210/TestLib.java | 8 | ||||
-rw-r--r-- | tests/bugs150/pr119210/TestLib2.java | 8 | ||||
-rw-r--r-- | tests/bugs150/pr119210/ThreadAspectLib.java | 19 | ||||
-rw-r--r-- | tests/bugs150/pr119210/ThreadAspectLib2.java | 19 |
4 files changed, 54 insertions, 0 deletions
diff --git a/tests/bugs150/pr119210/TestLib.java b/tests/bugs150/pr119210/TestLib.java new file mode 100644 index 000000000..09f1770a5 --- /dev/null +++ b/tests/bugs150/pr119210/TestLib.java @@ -0,0 +1,8 @@ +public class TestLib { + + public static void main(String[] args) { + System.err.println("obtaining five, got "+new TestLib().getFive()); + } + + public int getFive() { return 5; } +}
\ No newline at end of file diff --git a/tests/bugs150/pr119210/TestLib2.java b/tests/bugs150/pr119210/TestLib2.java new file mode 100644 index 000000000..718eee2e8 --- /dev/null +++ b/tests/bugs150/pr119210/TestLib2.java @@ -0,0 +1,8 @@ +public class TestLib2 { + + public static void main(String[] args) { + System.err.println("obtaining five, got "+new TestLib2().getFive()); + } + + public Integer getFive() { return new Integer(5); } +}
\ No newline at end of file diff --git a/tests/bugs150/pr119210/ThreadAspectLib.java b/tests/bugs150/pr119210/ThreadAspectLib.java new file mode 100644 index 000000000..b2c899499 --- /dev/null +++ b/tests/bugs150/pr119210/ThreadAspectLib.java @@ -0,0 +1,19 @@ +public aspect ThreadAspectLib { +// pointcut setThreadLocalsField(): set(private int TestLib.myInt); +// +// Integer around():setThreadLocalsField() +// { +// try{ +// return new Integer(2); +// } +// catch(Exception e) +// { +// e.printStackTrace(); +// return null; +// } +// } + + Integer around(): call(* getFive()) { + return new Integer(3); + } +}
\ No newline at end of file diff --git a/tests/bugs150/pr119210/ThreadAspectLib2.java b/tests/bugs150/pr119210/ThreadAspectLib2.java new file mode 100644 index 000000000..1794c0a4d --- /dev/null +++ b/tests/bugs150/pr119210/ThreadAspectLib2.java @@ -0,0 +1,19 @@ +public aspect ThreadAspectLib2 { +// pointcut setThreadLocalsField(): set(private int TestLib.myInt); +// +// Integer around():setThreadLocalsField() +// { +// try{ +// return new Integer(2); +// } +// catch(Exception e) +// { +// e.printStackTrace(); +// return null; +// } +// } + + int around(): call(* getFive()) { + return 3; + } +}
\ No newline at end of file |