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 =; // infers Stream<String>


the reserved type name var allows this:

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

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: 30466
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 or wait for the official release:
Previous Topic:Unwanted resource somehow created; how to delete?
Next Topic:Pydev F2 shortcut not working
Goto Forum:

Current Time: Mon Sep 23 11:04:56 GMT 2019

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

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

Back to the top