Add java8-features module: runnable demos and captured output for the ankurm.com java8-features article

This commit is contained in:
2026-10-20 17:13:58 +00:00
parent d565be93c6
commit 77c782abbf
18 changed files with 250 additions and 0 deletions
@@ -0,0 +1,11 @@
$ javac broken/CaptureError.java (1.8.0_504)
broken/CaptureError.java:7: error: local variables referenced from a lambda expression must be final or effectively final
Supplier<Integer> s = () -> counter;
^
1 error
$ javac broken/DiamondError.java (1.8.0_504)
broken/DiamondError.java:5: error: class C inherits unrelated defaults for move() from types A and B
static class C implements A, B { }
^
1 error