From 97e2ffa40e0c4b884b8e003d647fd0521bcb419d Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 5 Mar 2008 23:31:16 +0000 Subject: [PATCH] 221558: test and fix: incorrect abstract method error with generics and ITDs --- tests/bugs160/various/IncorrectMessage2.java | 14 ++++++++++++++ .../org/aspectj/systemtest/ajc160/Ajc160Tests.java | 1 + tests/src/org/aspectj/systemtest/ajc160/ajc160.xml | 13 ++++++++++++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 tests/bugs160/various/IncorrectMessage2.java diff --git a/tests/bugs160/various/IncorrectMessage2.java b/tests/bugs160/various/IncorrectMessage2.java new file mode 100644 index 000000000..116e8cd64 --- /dev/null +++ b/tests/bugs160/various/IncorrectMessage2.java @@ -0,0 +1,14 @@ + +class Foo extends FooBase implements 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 4d66e0c2a..29fd87422 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java @@ -22,6 +22,7 @@ public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // AspectH1.6.0rc1 public void testBadMessage() { runTest("incorrect itd error with generics");} + public void testBadMessage2() { runTest("incorrect itd error with generics - 2");} 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 92db7b0fc..bfc1c4c46 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml +++ b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml @@ -5,9 +5,20 @@ - + + + + + + + + + + + + -- 2.39.5