Blogger

Delete comment from: Inspired by Actual Events

Alex Buckley said...

This article is incorrect -- the single-file source launcher in JDK 11 is NOT a preview feature. If it was, JEP 330 would loudly proclaim the fact. It's really unclear why --enable-preview has entered the picture. All JEP 330 says is this: "If the file does not have the .java extension, the --source option must be used to force source-file mode."

Aug 7, 2018, 1:00:58 PM


Posted to JDK 11: Taking Single-File Java Source-Code Programs Out for a Spin

Google apps
Main menu