james.laskey at oracle.com
Thu Jun 6 15:46:48 UTC 2019
Just a note that text block (https://openjdk.java.net/jeps/355 <https://openjdk.java.net/jeps/355>) changesets have been pushed the the jdk. Thank you all for your input. Beat them up when you have a chance. I'll be preparing a proper release note in the coming weeks. But in the meantime (jshell changesets should be in tomorrow);
Text blocks exist as a Preview feature of the Java Language JEP 12 <http://openjdk.java.net/jeps/12>. This means that in order to use text blocks in your Java code, you must use --enable-preview and -source 13 flags on the javac command line and --enable-preview on the java command line;
javac --enable-preview -source 13 ...
java --enable-preview ...
If you are using jshell to experiment with text blocks then you must also use the --enable-preview flag;
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the amber-spec-experts