--- /dev/null
+import java.util.Optional;
+
+public class Testing {
+ public static void main(String[] args) {
+ Optional<Integer> value1 = Optional.of(15);
+ Optional<Integer> value2 = Optional.of(30);
+ boolean passed = value1.flatMap(v1 -> value2.map(v2 -> (v2 / v1) == 2)).orElse(false);
+ System.out.println(passed);
+ }
+}
*/
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");
}
<suite>
+<ajc-test dir="bugs187/476245" title="compile error">
+<compile files="Testing.java" options="-1.8"/>
+</ajc-test>
+
<ajc-test dir="bugs187/307147" title="missing joinpoint">
<compile files="Test.java TestAspect.aj ITDAspect.aj" options="-1.8"/>
<run class="test.Test">