diff options
author | acolyer <acolyer> | 2005-10-03 16:17:15 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-10-03 16:17:15 +0000 |
commit | 0fae66242efd3fd91dc7ace349cdcf7e5ebc2ade (patch) | |
tree | 85dda17da70b10b31b422853d1323421a82b3a21 /tests/bugs150 | |
parent | c86fa6de889e521ebe8224d1a7579269c53ac357 (diff) | |
download | aspectj-0fae66242efd3fd91dc7ace349cdcf7e5ebc2ade.tar.gz aspectj-0fae66242efd3fd91dc7ace349cdcf7e5ebc2ade.zip |
completes all of the MAP bar ITDs
Diffstat (limited to 'tests/bugs150')
-rw-r--r-- | tests/bugs150/pr101047.aj | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/bugs150/pr101047.aj b/tests/bugs150/pr101047.aj new file mode 100644 index 000000000..f64bd6ebc --- /dev/null +++ b/tests/bugs150/pr101047.aj @@ -0,0 +1,30 @@ +aspect Test { + before() : ( execution(* Foo.foo(..) ) ) { + System.out.println("before"); + + } +} + +class Foo { + private String myString = "A String"; + + public static void main(String[] args) { + new Foo().foo(); + } + + private void foo() { + String myLocal = myString; + + if (myLocal.endsWith("X")) { + String local1 = "local1"; + System.out.println(local1); + } else if (myLocal.endsWith("Y")) { + String local2 = "local2"; + System.out.println(local2); + } else { + String local1 = "local3"; + System.out.println(local1); + } + } +} + |