aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2022-12-29 15:17:53 +0100
committerAlexander Kriegisch <Alexander@Kriegisch.name>2023-01-04 15:22:03 +0100
commit5d0533b8903d5604883fbbfc95ccfda7ca4c1467 (patch)
tree31c0dfedebd37e69082693ddb0714c5a344fe82c /tests/src/test/java/org
parent5f46d44017d020822cf145ce0ff23cc44ecfdfad (diff)
downloadaspectj-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.java6
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");