aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-04 07:14:47 +0000
committeraclement <aclement>2006-05-04 07:14:47 +0000
commit5a01932b9dbdf81fe41e029fa56ede17364a2c2e (patch)
treea2991f73f2b496670e3de21f00538fbae9da891d /tests/bugs152
parentcb5dfe759852d4965c692934ed7e14c41f61b715 (diff)
downloadaspectj-5a01932b9dbdf81fe41e029fa56ede17364a2c2e.tar.gz
aspectj-5a01932b9dbdf81fe41e029fa56ede17364a2c2e.zip
fixes for 137235 (contributed by Ron): more intelligent logic for determining if a path entry is a jar/zip (don't just rely on suffix, some new .bndl files seem to be becoming popular...)
Diffstat (limited to 'tests/bugs152')
-rw-r--r--tests/bugs152/pr137235/directory.jar/Before.java5
-rw-r--r--tests/bugs152/pr137235/directory.jar/BeforeExec.aj5
-rw-r--r--tests/bugs152/pr137235/directory.jar/Hello.java6
-rw-r--r--tests/bugs152/pr137235/directory.jar/Rename.aj5
4 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs152/pr137235/directory.jar/Before.java b/tests/bugs152/pr137235/directory.jar/Before.java
new file mode 100644
index 000000000..cf2f1b4cb
--- /dev/null
+++ b/tests/bugs152/pr137235/directory.jar/Before.java
@@ -0,0 +1,5 @@
+public aspect Before {
+ before() : call(* getName()) {
+ System.out.println("Before call");
+ }
+}
diff --git a/tests/bugs152/pr137235/directory.jar/BeforeExec.aj b/tests/bugs152/pr137235/directory.jar/BeforeExec.aj
new file mode 100644
index 000000000..35d12cd86
--- /dev/null
+++ b/tests/bugs152/pr137235/directory.jar/BeforeExec.aj
@@ -0,0 +1,5 @@
+public aspect BeforeExec {
+ before() : execution(* getName()) {
+ System.out.println("Before execution");
+ }
+}
diff --git a/tests/bugs152/pr137235/directory.jar/Hello.java b/tests/bugs152/pr137235/directory.jar/Hello.java
new file mode 100644
index 000000000..30008d603
--- /dev/null
+++ b/tests/bugs152/pr137235/directory.jar/Hello.java
@@ -0,0 +1,6 @@
+public class Hello {
+ public static void main(String argz[]) {
+ System.out.println("Hello "+getName());
+ }
+ public static String getName() { return "Java"; }
+}
diff --git a/tests/bugs152/pr137235/directory.jar/Rename.aj b/tests/bugs152/pr137235/directory.jar/Rename.aj
new file mode 100644
index 000000000..fb89dfca5
--- /dev/null
+++ b/tests/bugs152/pr137235/directory.jar/Rename.aj
@@ -0,0 +1,5 @@
+public aspect Rename {
+ String around() : call(* getName()) {
+ return "AspectJ not just "+proceed();
+ }
+}