From 0095636d6bb3bf50d33104df7460f28ab3a76f4d Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Fri, 4 Sep 2015 13:33:52 -0700 Subject: [PATCH] 476245: compile error already fixed in 1.8.7 --- tests/bugs187/476245/Testing.java | 10 ++++++++++ .../src/org/aspectj/systemtest/ajc187/Ajc187Tests.java | 4 ++++ tests/src/org/aspectj/systemtest/ajc187/ajc187.xml | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 tests/bugs187/476245/Testing.java diff --git a/tests/bugs187/476245/Testing.java b/tests/bugs187/476245/Testing.java new file mode 100644 index 000000000..8b0bc8fb8 --- /dev/null +++ b/tests/bugs187/476245/Testing.java @@ -0,0 +1,10 @@ +import java.util.Optional; + +public class Testing { + public static void main(String[] args) { + Optional value1 = Optional.of(15); + Optional value2 = Optional.of(30); + boolean passed = value1.flatMap(v1 -> value2.map(v2 -> (v2 / v1) == 2)).orElse(false); + System.out.println(passed); + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc187/Ajc187Tests.java b/tests/src/org/aspectj/systemtest/ajc187/Ajc187Tests.java index 3fce314bd..754864fd7 100644 --- a/tests/src/org/aspectj/systemtest/ajc187/Ajc187Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc187/Ajc187Tests.java @@ -24,6 +24,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc187Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testCompileError_476245() throws Exception { + runTest("compile error"); + } + public void testMissingJoinpoint_307147() throws Exception { runTest("missing joinpoint"); } diff --git a/tests/src/org/aspectj/systemtest/ajc187/ajc187.xml b/tests/src/org/aspectj/systemtest/ajc187/ajc187.xml index 19706f43a..dfa22f696 100644 --- a/tests/src/org/aspectj/systemtest/ajc187/ajc187.xml +++ b/tests/src/org/aspectj/systemtest/ajc187/ajc187.xml @@ -2,6 +2,10 @@ + + + + -- 2.39.5