From 82c45963d7c28080668a5b19a8bdb2fc29e15342 Mon Sep 17 00:00:00 2001 From: wisberg Date: Mon, 31 Jan 2005 11:53:38 +0000 Subject: [PATCH] @testcase PR#84033 incremental declare error persists after fix --- tests/ajcTestsFailing.xml | 10 ++++++++++ .../bugs/incremental-declare-error/pack/Aspect.20.java | 6 ++++++ tests/bugs/incremental-declare-error/pack/Aspect.java | 6 ++++++ tests/bugs/incremental-declare-error/pack/Main.java | 8 ++++++++ 4 files changed, 30 insertions(+) create mode 100644 tests/bugs/incremental-declare-error/pack/Aspect.20.java create mode 100644 tests/bugs/incremental-declare-error/pack/Aspect.java create mode 100644 tests/bugs/incremental-declare-error/pack/Main.java diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml index b3b6401b1..c109cf188 100644 --- a/tests/ajcTestsFailing.xml +++ b/tests/ajcTestsFailing.xml @@ -152,4 +152,14 @@ files="Test_AroundVarBug.java,AroundVarBug.java"/> + + + + + + + + + diff --git a/tests/bugs/incremental-declare-error/pack/Aspect.20.java b/tests/bugs/incremental-declare-error/pack/Aspect.20.java new file mode 100644 index 000000000..ec9f72da5 --- /dev/null +++ b/tests/bugs/incremental-declare-error/pack/Aspect.20.java @@ -0,0 +1,6 @@ + +package pack; + +public aspect Aspect { + declare error : execution(private static void Main.main(String[])) : "main"; +} \ No newline at end of file diff --git a/tests/bugs/incremental-declare-error/pack/Aspect.java b/tests/bugs/incremental-declare-error/pack/Aspect.java new file mode 100644 index 000000000..f3aa00547 --- /dev/null +++ b/tests/bugs/incremental-declare-error/pack/Aspect.java @@ -0,0 +1,6 @@ + +package pack; + +public aspect Aspect { + declare error : execution(public static void Main.main(String[])) : "main"; +} \ No newline at end of file diff --git a/tests/bugs/incremental-declare-error/pack/Main.java b/tests/bugs/incremental-declare-error/pack/Main.java new file mode 100644 index 000000000..079b05d14 --- /dev/null +++ b/tests/bugs/incremental-declare-error/pack/Main.java @@ -0,0 +1,8 @@ + +package pack; + +/** @testcase PR#84033 incremental declare error persists after fix */ +public class Main { + public static void main(String[] args) { // CE 6 on first pass, not second + } +} \ No newline at end of file -- 2.39.5