diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-12-29 15:17:53 +0100 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-01-04 15:22:03 +0100 |
commit | 5d0533b8903d5604883fbbfc95ccfda7ca4c1467 (patch) | |
tree | 31c0dfedebd37e69082693ddb0714c5a344fe82c /tests/src/test/java/org | |
parent | 5f46d44017d020822cf145ce0ff23cc44ecfdfad (diff) | |
download | aspectj-5d0533b8903d5604883fbbfc95ccfda7ca4c1467.tar.gz aspectj-5d0533b8903d5604883fbbfc95ccfda7ca4c1467.zip |
Add test reproducing problem from #198
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src/test/java/org')
-rw-r--r-- | tests/src/test/java/org/aspectj/systemtest/ajc164/DeclareMixinTests.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc164/DeclareMixinTests.java b/tests/src/test/java/org/aspectj/systemtest/ajc164/DeclareMixinTests.java index 1f5c135e3..1c312d18b 100644 --- a/tests/src/test/java/org/aspectj/systemtest/ajc164/DeclareMixinTests.java +++ b/tests/src/test/java/org/aspectj/systemtest/ajc164/DeclareMixinTests.java @@ -67,6 +67,12 @@ public class DeclareMixinTests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("casee"); } + // multiple instances causing factory invocation multiple times (but is cached), concurrent case + // see https://github.com/eclipse/org.aspectj/issues/198 + public void testCaseEConcurrent() { + runTest("casee_concurrent"); + } + // Factory method directly takes the type specified in the Mixin target (strongly typed) public void testCaseF() { runTest("casef"); |