From f1b0ee3c34a90a0db0feb812139684b5fd132a1a Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 4 Sep 2009 20:51:51 +0000 Subject: [PATCH] 286375: test and fix: recursive decl npe --- tests/bugs166/pr286375/DatabaseOperationMonitor.java | 5 +++++ .../org/aspectj/systemtest/ajc166/Ajc166Tests.java | 11 ++++++++--- tests/src/org/aspectj/systemtest/ajc166/ajc166.xml | 5 ++++- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 tests/bugs166/pr286375/DatabaseOperationMonitor.java diff --git a/tests/bugs166/pr286375/DatabaseOperationMonitor.java b/tests/bugs166/pr286375/DatabaseOperationMonitor.java new file mode 100644 index 000000000..22ef1a247 --- /dev/null +++ b/tests/bugs166/pr286375/DatabaseOperationMonitor.java @@ -0,0 +1,5 @@ +privileged public abstract aspect DatabaseOperationMonitor> extends BaseOperationMonitor {} +class BaseOperationMonitor

{} +class AggregatedDatabaseStats {} +class Wibble extends AggregatedDatabaseStats {} +aspect Foo extends DatabaseOperationMonitor {} diff --git a/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java b/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java index 62355aa4b..e906be45c 100644 --- a/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java @@ -18,13 +18,18 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc166Tests extends org.aspectj.testing.XMLBasedAjcTestCase { +// public void testITDannos_288049() { +// runTest("itd decanno"); +// } + public void testMungerCCE_288635() { runTest("munger cce"); } - // public void testNPEonBadAspectDecl_286375() { - // runTest("npe on bad aspect decl"); - // } + public void testNPEonBadAspectDecl_286375() { + runTest("npe on bad aspect decl"); + } + // // public void testAnnoModifierOrdering_287597_1() { // runTest("anno modifier ordering - 1"); diff --git a/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml b/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml index bb873164e..f6ac19c62 100644 --- a/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml +++ b/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml @@ -2,11 +2,14 @@ + + + + - -- 2.39.5