From c328f2f1dca0c38178f97dfc2aaf9d7098a7ab22 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 5 Mar 2008 22:19:44 +0000 Subject: [PATCH] testcode - incorrect message with itd of default implementation using generic types --- tests/bugs160/various/IncorrectMessage.java | 14 ++++++++++++++ .../org/aspectj/systemtest/ajc160/Ajc160Tests.java | 1 + tests/src/org/aspectj/systemtest/ajc160/ajc160.xml | 5 +++++ 3 files changed, 20 insertions(+) create mode 100644 tests/bugs160/various/IncorrectMessage.java 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 @@ + + + + + -- 2.39.5