Add java11-features module: runnable demos and captured output for the ankurm.com java11-features article
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
$ javac broken/JaxbRemoved.java (1.8.0_504)
|
||||
(compiled cleanly)
|
||||
|
||||
$ javac broken/JaxbRemoved.java (11.0.32.1)
|
||||
broken/JaxbRemoved.java:1: error: package javax.xml.bind does not exist
|
||||
import javax.xml.bind.JAXBContext;
|
||||
^
|
||||
broken/JaxbRemoved.java:6: error: cannot find symbol
|
||||
System.out.println(JAXBContext.class.getName());
|
||||
^
|
||||
symbol: class JAXBContext
|
||||
location: class JaxbRemoved
|
||||
2 errors
|
||||
|
||||
$ javac broken/VarWithoutLambda.java (11.0.32.1)
|
||||
broken/VarWithoutLambda.java:6: error: invalid lambda parameter declaration
|
||||
BiFunction<Integer, Integer, Integer> f = (var a, Integer b) -> a + b;
|
||||
^
|
||||
(cannot mix 'var' and explicitly-typed parameters)
|
||||
1 error
|
||||
Reference in New Issue
Block a user