From: aclement Date: Wed, 5 Mar 2008 22:19:44 +0000 (+0000) Subject: testcode - incorrect message with itd of default implementation using generic types X-Git-Tag: V1_6_0rc1~70 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c328f2f1dca0c38178f97dfc2aaf9d7098a7ab22;p=aspectj.git testcode - incorrect message with itd of default implementation using generic types --- 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 extends FooBase implements Marker{}//Marker { } + +interface Marker { } + +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 @@ + + + + +