diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-08-23 09:23:38 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-08-23 10:39:24 +0700 |
commit | c708962d7e0341133790bf7315257db7aa5acc86 (patch) | |
tree | 3ec1d766c31843dab259ac4f1a4ac0790b0d380c /tests/src/test/java/org/aspectj/systemtest/ajc1920/Bugs1920Tests.java | |
parent | 2af1b06b6a9439109520b249b5e44dfc1375c199 (diff) | |
download | aspectj-c708962d7e0341133790bf7315257db7aa5acc86.tar.gz aspectj-c708962d7e0341133790bf7315257db7aa5acc86.zip |
Add regression test for #257
Relates to #257.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src/test/java/org/aspectj/systemtest/ajc1920/Bugs1920Tests.java')
-rw-r--r-- | tests/src/test/java/org/aspectj/systemtest/ajc1920/Bugs1920Tests.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc1920/Bugs1920Tests.java b/tests/src/test/java/org/aspectj/systemtest/ajc1920/Bugs1920Tests.java index e1f3fa1ca..b1942f11b 100644 --- a/tests/src/test/java/org/aspectj/systemtest/ajc1920/Bugs1920Tests.java +++ b/tests/src/test/java/org/aspectj/systemtest/ajc1920/Bugs1920Tests.java @@ -79,6 +79,15 @@ public class Bugs1920Tests extends XMLBasedAjcTestCase { runTest("do not match bridge methods"); } + /** + * In 1.9.20, a regression bug occurred, matching negated types like '!void' and '!String' incorrectly. + * <p> + * See <a href="https://github.com/eclipse-aspectj/aspectj/issues/257">GitHub issue 257</a>. + */ + public void test_GitHub_257() { + runTest("handle negated type patterns correctly"); + } + public static Test suite() { return XMLBasedAjcTestCase.loadSuite(Bugs1920Tests.class); } |