diff options
author | Andy Clement <aclement@pivotal.io> | 2015-09-04 13:33:52 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2015-09-04 13:33:52 -0700 |
commit | 0095636d6bb3bf50d33104df7460f28ab3a76f4d (patch) | |
tree | 60b094154c49632f00b34910bc83ce9a6c23ecdc /tests/bugs187 | |
parent | 2233cf023bce0168435795ab5747dae59fbd9a0d (diff) | |
download | aspectj-0095636d6bb3bf50d33104df7460f28ab3a76f4d.tar.gz aspectj-0095636d6bb3bf50d33104df7460f28ab3a76f4d.zip |
476245: compile error already fixed in 1.8.7
Diffstat (limited to 'tests/bugs187')
-rw-r--r-- | tests/bugs187/476245/Testing.java | 10 |
1 files changed, 10 insertions, 0 deletions
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<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); + } +} |