salvin francis wrote:Those new String deprecated methods seem to be directed towards programmers. But I wonder why would they add new deprecated methods in a new release. Perhaps these methods are used in the java source somewhere.
Deprecated, for removal: This API element is subject to removal in a future version.
This method is associated with text blocks, a preview language feature. Text blocks and/or this method may be changed or removed in a future release.
Campbell Ritchie wrote:I couldn't get it to work in Java12, not even with the --enable flag. I did get the new form of switch to work in Java12 with --enable however.
Yes. Thank you for the two links.
Mike Simmons wrote:. . . By "it", do you mean the new text blocks? . . .
Harold Kelly wrote:Hey guys! Anyone tried Java 13 yet? How is it? Which one is better - 12 or 13? Whatcha think??
I found this JEP link which tells us all about code blocks. They are different from the version planned for Java12.
Mike Simmons wrote:. . . the new text blocks? . . .
Tim Holloway wrote:Forward deprecation. What a concept.
Maybe they need an @Experimental or @Unstable annotation.
Mike Simmons wrote:Yeah, nowadays every 3rd release is supposed to be a long-term support release, starting with Java 8, then Java 11, and presumably Java 14 when it comes out.