aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2006-07-06 12:12:07 +0000
committeraclement <aclement>2006-07-06 12:12:07 +0000
commit369de870280d4ae4f1e984a7bd8a76affb4ed0a2 (patch)
tree29356950b15fbd6f875ada384ff7b52aa626e9e8 /tests
parent00669de71fac80693af27127e2587c596c1cf3f1 (diff)
downloadaspectj-369de870280d4ae4f1e984a7bd8a76affb4ed0a2.tar.gz
aspectj-369de870280d4ae4f1e984a7bd8a76affb4ed0a2.zip
test and fix for 148409
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs153/pr148409/Blurgh.java27
-rw-r--r--tests/bugs153/pr148409/X.java4
-rw-r--r--tests/bugs153/pr148409/aop.xml5
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java5
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/ajc153.xml6
5 files changed, 45 insertions, 2 deletions
diff --git a/tests/bugs153/pr148409/Blurgh.java b/tests/bugs153/pr148409/Blurgh.java
new file mode 100644
index 000000000..b44c0a9b6
--- /dev/null
+++ b/tests/bugs153/pr148409/Blurgh.java
@@ -0,0 +1,27 @@
+
+
+interface SecurityEntity {}
+class Goo {}
+interface Base {}
+interface Hoo<X> { public void m(X x);}
+
+class Foo<B extends Base, C extends B> extends Goo implements Hoo<B> {
+
+ public void m(B b) {
+ }
+}
+
+
+interface Interface1 extends Base {}
+
+class Impl1 implements Interface1 {}
+
+
+
+
+public class Blurgh {
+ public static void main(String []argv) {
+ new Foo<Interface1,Impl1>();
+ }
+}
+
diff --git a/tests/bugs153/pr148409/X.java b/tests/bugs153/pr148409/X.java
new file mode 100644
index 000000000..7011b8b0c
--- /dev/null
+++ b/tests/bugs153/pr148409/X.java
@@ -0,0 +1,4 @@
+aspect X {
+ before(): staticinitialization(Fo*) { }
+ before(): call(Fo*.new(..)) { }
+}
diff --git a/tests/bugs153/pr148409/aop.xml b/tests/bugs153/pr148409/aop.xml
new file mode 100644
index 000000000..a0dd0df7b
--- /dev/null
+++ b/tests/bugs153/pr148409/aop.xml
@@ -0,0 +1,5 @@
+<aspectj>
+ <aspects>
+ <aspect name="X"/>
+ </aspects>
+</aspectj>
diff --git a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
index 8d0a2f602..6c3b5b0b4 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc153/Ajc153Tests.java
@@ -33,8 +33,9 @@ public class Ajc153Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testVerifyErrNoTypeCflowField_pr145693_1() { runTest("verifyErrNoTypeCflowField"); }
public void testVerifyErrInpathNoTypeCflowField_pr145693_2() { runTest("verifyErrInpathNoTypeCflowField"); }
public void testCpathNoTypeCflowField_pr145693_3() { runTest("cpathNoTypeCflowField"); }
- //public void testVisibilityProblem_pr149071() { runTest("visibility problem");}
- //public void testAdviceNotWovenAspectPath_pr147841() { runTest("advice not woven on aspectpath");}
+ // public void testVisibilityProblem_pr149071() { runTest("visibility problem");}
+ // public void testAdviceNotWovenAspectPath_pr147841() { runTest("advice not woven on aspectpath");}
+ public void testGenericSignatures_pr148409() { runTest("generic signature problem"); }
/////////////////////////////////////////
public static Test suite() {
diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
index 5954001c6..30c4a1a8a 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
+++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
@@ -75,6 +75,12 @@
<run class="Sample" classpath="run.jar,apath.jar"/>
</ajc-test>
+ <ajc-test dir="bugs153/pr148409" title="generic signature problem">
+ <compile files="Blurgh.java" options="-1.5"/>
+ <compile files="X.java" options="-1.5 -Xlint:ignore"/>
+ <run class="Blurgh" options="-1.5" ltw="aop.xml"/>
+ </ajc-test>
+
<ajc-test dir="bugs153/pr149071" title="visibility problem">
<compile files="AspectItd.java"/>
</ajc-test>