diff options
-rw-r--r-- | tests/bugs160/various/IncorrectMessage.java | 14 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java | 1 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc160/ajc160.xml | 5 |
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/bugs160/various/IncorrectMessage.java b/tests/bugs160/various/IncorrectMessage.java new file mode 100644 index 000000000..632bcf3ff --- /dev/null +++ b/tests/bugs160/various/IncorrectMessage.java @@ -0,0 +1,14 @@ + +class Foo<A> extends FooBase implements Marker{}//Marker<A> { } + +interface Marker<A> { } + +aspect AspectDoWhatEver { + void Marker.doWhatEver() { // do nothing + } +} + +abstract class FooBase +{ + abstract void doWhatEver(); +}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java index cf88304c2..4d66e0c2a 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java @@ -21,6 +21,7 @@ import junit.framework.Test; public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // AspectH1.6.0rc1 + public void testBadMessage() { runTest("incorrect itd error with generics");} public void testHasMethodAnnoValueInt_various() { runTest("hasmethod anno value - I");} public void testHasMethodAnnoValueBoolean_various() { runTest("hasmethod anno value - Z");} diff --git a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml index 35bc56a79..92db7b0fc 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml +++ b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml @@ -3,6 +3,11 @@ <!-- AspectJ v1.6.0 Tests --> <suite> + + <ajc-test dir="bugs160/various" title="incorrect itd error with generics"> + <compile options="-1.5 -showWeaveInfo" files="IncorrectMessage.java"/> + </ajc-test> + <ajc-test dir="bugs160/various" title="hasmethod anno value - I"> <compile options="-1.5 -XhasMember -showWeaveInfo" files="A.java"> <message kind="weave" text="Extending interface set for type 'B' (A.java) to include 'java.io.Serializable' (A.java)"/> |