From 7d144321837cac05cdbe2a30323d670dfcc9809a Mon Sep 17 00:00:00 2001 From: jhugunin Date: Sun, 27 Apr 2003 23:31:06 +0000 Subject: [PATCH] fix and tests for Bugzilla Bug 30663 lame error message: "negation doesn't allow binding" and Bugzilla Bug 36329 The compiler crashes when using aspect libraries created without using -noweave --- tests/ajcTests.xml | 20 +++++++++++++++++++ tests/bugs/BadBindingError.java | 8 ++++++++ tests/jimTests.xml | 9 +++++++-- .../aspectj/weaver/bcel/BcelClassWeaver.java | 6 +++++- .../aspectj/weaver/patterns/TypePattern.java | 3 +++ .../weaver/patterns/WildTypePattern.java | 8 +++++++- 6 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 tests/bugs/BadBindingError.java diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index ebaedd66c..6b952b04a 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -5878,4 +5878,24 @@ + + + + + + + + + + + + + + + + diff --git a/tests/bugs/BadBindingError.java b/tests/bugs/BadBindingError.java new file mode 100644 index 000000000..0f1e111e4 --- /dev/null +++ b/tests/bugs/BadBindingError.java @@ -0,0 +1,8 @@ +// Bugzilla Bug 30663 +//lame error message: "negation doesn't allow binding" + +import org.aspectj.testing.Tester; + +public aspect BadBindingError { + pointcut p(int i): call(void f(i)); +} diff --git a/tests/jimTests.xml b/tests/jimTests.xml index 6de1c507c..0ebd8cd50 100644 --- a/tests/jimTests.xml +++ b/tests/jimTests.xml @@ -1,11 +1,16 @@ - +