This week's book giveaway is in the NodeJS forum.
We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line!
See this thread for details.
Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Java SE 12 released today  RSS feed

 
Carey Brown
Saloon Keeper
Posts: 5759
56
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only obvious new feature that I'm aware of (I'm sure there's more) is new switch() syntax enhancements.
 
Carey Brown
Saloon Keeper
Posts: 5759
56
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
 
Carey Brown
Saloon Keeper
Posts: 5759
56
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Online API Documentation

If anyone finds out where you can download this so that you have a local copy please let us know. I tried but couldn't find it.
 
Marshal
Posts: 63822
209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have they got “raw Strings”, delimited by `...`?
 
Campbell Ritchie
Marshal
Posts: 63822
209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Carey Brown wrote:Online API Documentation . . .

Java11 took way the frames/no frames options, and this ersion seems to have lost the all classes option.
That is going to work wonders for adoption because one of the advantages of Java® is the good documentation. If you can no longer find your way round the documentation 
 
Sheriff
Posts: 21692
101
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For those that prefer OpenJDK: http://jdk.java.net/12/. https://adoptopenjdk.net/releases.html is not up-to-date though.

Campbell Ritchie wrote:Have they got “raw Strings”, delimited by `...`?


Nope, that got postponed because they were having some issues with it. I think it was related to what `` could mean - a single empty raw string, or the start of a raw string?

Campbell Ritchie wrote:

Carey Brown wrote:Online API Documentation . . .

Java11 took way the frames/no frames options, and this ersion seems to have lost the all classes option.
That is going to work wonders for adoption because one of the advantages of Java® is the good documentation. If you can no longer find your way round the documentation 


I think they did that because they added the search functionality at the top.
 
Bartender
Posts: 1114
36
IBM DB2 Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me say I am still puzzled with this fast pace in new Java releases...
 
Campbell Ritchie
Marshal
Posts: 63822
209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rob Spoor wrote:. . . they added the search functionality at the top.

I never noticed that Thank you.
 
Rob Spoor
Sheriff
Posts: 21692
101
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI: https://robtimus.github.io/whats-new-in-java/ is updated with Java 12.
 
Rob Spoor
Sheriff
Posts: 21692
101
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Claude Moore wrote:Let me say I am still puzzled with this fast pace in new Java releases...


You can just skip everything until Java 17, because that will be the next LTS version. Java 12 will be EOL in September already. Java 11 will be the LTS version until 2021.
 
Carey Brown
Saloon Keeper
Posts: 5759
56
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rob Spoor wrote:You can just skip everything until Java 17, because that will be the next LTS version. Java 12 will be EOL in September already. Java 11 will be the LTS version until 2021.

"LTS"? "EOL"?
 
Campbell Ritchie
Marshal
Posts: 63822
209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No more LTSs until Java17?
 
Saloon Keeper
Posts: 9996
208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  • Long Term Support
  • End of Life

  • Starting with Java 9, new versions will be smaller and released about twice a year, so developers have earlier access to new features. Only some of these versions are LTS versions, which you can consider similar to major releases pre-Java 9.

    Java 11 is the current LTS version. For simple applications I will be using the latest available Java versions, but for more complex projects like enterprise applications I will stay at an LTS version. I think it's a miracle that after a lot of tinkering I finally got a Java EE 8 application to run on JDK 11.
     
    Campbell Ritchie
    Marshal
    Posts: 63822
    209
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Yesterday, I wrote:Have they got “raw Strings”, delimited by `...`?

    Not obviously:-

    Campbell's JShell version 12 wrote:jshell
    |  Welcome to JShell -- Version 12
    |  For an introduction type: /help intro

    jshell> `This is a String with
      ...>     builtin indentation.
      ...>        Look, no hands.
      ...>           Look, no feet.
      ...>              Look no escape sequences.
      ...> Look, no teeth`
    |  Error:
    |  illegal character: '`'
    |  `This is a String with
    |  ^
    |  Error:
    |  ';' expected
    |  `This is a String with
    |            ^

    Shall have to look in the JLS to see what has changed. I bet the Java™ Tutorials still use the Java8 version.
     
    Bartender
    Posts: 20572
    121
    Android Eclipse IDE Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Campbell Ritchie wrote:
    That is going to work wonders for adoption because one of the advantages of Java® is the good documentation.



    Snicker. Your Mileage May Vary. Java has lots of documentation, but not all of it is good documentation.

    I presume that this release is part of the new more restricted (i.e., $$$) Java continuum?
     
    Campbell Ritchie
    Marshal
    Posts: 63822
    209
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I didn't find anything in the JLS (=Java® Language Specification) about -> after switch nor new kinds of String literals.
     
    Stephan van Hulst
    Saloon Keeper
    Posts: 9996
    208
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Raw literals are not in Java 12.

    Switch expressions are a preview feature, so while they can be used in the new JDK, they're not officially part of the language yet.
     
    Rob Spoor
    Sheriff
    Posts: 21692
    101
    Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Switch expressions need an explicit flag to enable them. If raw strings were part of Java 12 they would have needed it too.

    Campbell Ritchie wrote:No more LTSs until Java17?


    Nope. Each LTS will be the main Java for 3 years, which means that there will be 5 intermediate non-LTS versions.
     
    He does not suffer fools gladly. But this tiny ad does:
    global solutions you can do in your home or backyard
    https://coderanch.com/t/708587/global-solutions-home-backyard
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!