Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Java 10 with Oxygen3 Ver. 4.7.3( Local-Variable Type Inference (JEP286))
Java 10 with Oxygen3 Ver. 4.7.3 [message #1784121] Thu, 22 March 2018 16:26 Go to next message
Manuel Prochnow is currently offline Manuel ProchnowFriend
Messages: 4
Registered: March 2018
Junior Member
look at this code sniped:

var list = new ArrayList<String>(); // infers ArrayList<String>
var stream = list.stream(); // infers Stream<String>

--------------------------------------------------------------------------

the reserved type name var allows this:

so far:
ArrayList<String> list = new ArrayList<>();

now:
var list = new ArrayList<String>();

---------------------------------------------------------------------------------

it dosenĀ“t work in Oxygen 3. Why?


thanks for help
Re: Java 10 with Oxygen3 Ver. 4.7.3 [message #1784168 is a reply to message #1784121] Fri, 23 March 2018 08:19 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29551
Registered: July 2009
Senior Member
Unfortunately JDT cannot legally release Java 10 support before Java 10 itself has released (by Oracle), so you'll either have to install the "beta" from https://marketplace.eclipse.org/content/java-10-support-oxygen or wait for the official release: https://wiki.eclipse.org/Oxygen/Simultaneous_Release_Plan#Oxygen.3a
Previous Topic:Unwanted resource somehow created; how to delete?
Next Topic:Pydev F2 shortcut not working
Goto Forum:
  


Current Time: Tue Sep 25 06:45:31 GMT 2018

Powered by FUDForum. Page generated in 0.04007 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top