aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs195/550494/DataSourceConnectionAspectCode.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs195/550494/DataSourceConnectionAspectCode.java')
-rw-r--r--tests/bugs195/550494/DataSourceConnectionAspectCode.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs195/550494/DataSourceConnectionAspectCode.java b/tests/bugs195/550494/DataSourceConnectionAspectCode.java
new file mode 100644
index 000000000..aedc585b1
--- /dev/null
+++ b/tests/bugs195/550494/DataSourceConnectionAspectCode.java
@@ -0,0 +1,19 @@
+package foo;
+
+import javax.sql.DataSource;
+
+import org.aspectj.lang.JoinPoint;
+import org.aspectj.lang.annotation.Aspect;
+import org.aspectj.lang.annotation.Before;
+import org.aspectj.lang.annotation.DeclareParents;
+
+import javax.sql.DataSource;
+
+
+public aspect DataSourceConnectionAspectCode {
+ declare parents: BaseClass implements DataSource;
+
+ before() : execution(public java.sql.Connection javax.sql.DataSource+.getConnection(..)) {
+ System.out.println(thisJoinPoint);
+ }
+}