From: Andy Clement Date: Fri, 4 Sep 2015 20:33:52 +0000 (-0700) Subject: 476245: compile error already fixed in 1.8.7 X-Git-Tag: V1_8_7~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0095636d6bb3bf50d33104df7460f28ab3a76f4d;p=aspectj.git 476245: compile error already fixed in 1.8.7 --- 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 @@ + + + +