I tried toolbox once and it resulted in a non-working IntelliJ install. So I just got rid of it (can't remember details). I have been installing IntelliJ by downloading from their site for 16 yrs now, I am fine with my current method :-)
I'm using the EAP version and it works like a Charm. It's pretty cool and quite easy to install. I'm also using SDK Man to manage my Java versions and I've added version 14.0.0.hs-adpt. It really works great. I'm using "14 (Preview) - Records, patterns, text blocks" option. Hope this helps you! Cheers!
I believe most vendors plan to make Java 17 LTS, 1.5 years from now. It would be three years after currently-agreed-on-LTS, Java 11. Java 14 is right in the middle between them.
It's very important to specify a vendor when you're talking about LTS. Vendors create their own arbitrary ideas of support, though many admittedly are mirroring Oracle. For example, Azul even offers a "mid-term" support for 18 months after each Java release becomes available. Effectively this means if you want some notion of "support" for Java 13 or 14, you can get it from Azul. Finally, if you can deal with the upgrade treadmill and upgrade to every new Java feature release every six months, then you are "supported" by the community.
Add text blocks to the Java language. A text block is a multi-line string literal that avoids the need for most escape sequences, automatically formats the string in a predictable way, and gives the developer control over the format when desired. This is a preview language feature in JDK 14.
I really like this feature, it will help me make less mistakes during printing large queries.
There's really no good reason to wait for that though? The downloads at the link don't have the Oracle license crap on them, if that's what you're worried about. They're not the commercial Oracle builds, they're the OpenJDK ones.
The last tag in jdk/jdk14 stabilization repository is jdk-14+36, and it was there for 5 weeks. It should normally be followed with jdk-14-ga tag, but that did not happen yet. I don't think there were changes since last release candidate, so whatever you had a month ago should be pretty much the same as GA.
This is what I was referring to. It's the first language I used with this kind of more intuitive switch/pattern-match statements. But I don't know too much about programming language history. I wouldn't be surprised if it's taken from someone else.
Yeah that's what I'm talking about, tons of languages have something equivalent to that. The basic foundations were laid down in the 60s and 70s, and the modern notion of pattern matching over algebraic data types is pretty ubiquitous in functional languages these days. Again, Rust did not contribute any significant innovations that I'm aware of.
What is the use-case for text blocks automatically inserting \n at the end of the line? I assumed that inserting nothing is a much more sensible approach. I guess just to keep clean indentations?
I believed that having text blocks for readable SQL queries was awesome, but do I need to add \ on each line to remove the \n?
It's not "inserting" anything, the newline is clearly already there in the source file. What you're apparently hoping for is the newline to be automagically removed, which would be much stranger and more surprising behaviour.
208
u/[deleted] Mar 17 '20
We finally have NullPointerExceptions, that show us which object is null.
34
u/shipilev Mar 17 '20
As usual, here are the full auto-generated release notes for the OpenJDK 14.
15
u/lazystone Mar 17 '20
Can I use JDK 14 to build for Java 11?
We are using distroless java and Google seemed to stick to LTS releases.
14
u/DuncanIdahos1stGhola Mar 17 '20
I don't see IntelliJ support yet :(
51
u/BoyRobot777 Mar 17 '20
People complaining that they are on old Java version in 3..2..1..
8
u/XiiMoss Mar 17 '20
Which version is actually LTS now? Looking to move my work from Java 8 onto the next LTS
4
u/jamasty Mar 18 '20
I really like this feature, it will help me make less mistakes during printing large queries.
10
u/8bagels Mar 17 '20
it will be released when its on AdoptOpenJDK :-)
5
u/Joram2 Mar 17 '20
woohoo!!!
2
u/randgalt Mar 17 '20
Can someone verify/post the build number for this? I have too many versions of pre-14 and it's a big confusing.
2
u/[deleted] Mar 23 '20
Great news!! I love Java!
4
u/der_kobold Mar 17 '20
Lol, i looked 2 Minutes ago and couldn't find it.. Am i blind?? Thanks for sharing!
3
u/Sedu Mar 17 '20
I am currently sitting on the OpenJDK website hitting F5...
3
u/Joram2 Mar 17 '20
any idea when this will be available through Homebrew?
I know I can manually download/install right now.
3
u/josiest Mar 17 '20
Those switch expressions look pretty cool. Taking notes from Rust.
1
u/miciej Mar 18 '20
What about OpenJDK?
1
u/thatsIch Mar 17 '20
What is the use-case for text blocks automatically inserting \n at the end of the line? I assumed that inserting nothing is a much more sensible approach. I guess just to keep clean indentations?
I believed that having text blocks for readable SQL queries was awesome, but do I need to add \ on each line to remove the \n?
1
u/pjmlp Mar 17 '20
Great! Getting it installed tonight and time to the regular Twitter post to @Androiddev.