Generics Wildcard (Java 7) - EOF error #13

Closed
romani opened this Issue Oct 5, 2013 · 2 comments

Comments

Projects
None yet
2 participants
Owner

romani commented Oct 5, 2013

Created: 2013-03-17
Creator: Füge

Generics wildcard usage in Java 7 like:

List<Foo> foo = List<>();

throws:
Got an exception - expecting EOF, found ...

eskatos commented Mar 18, 2014

👍

Owner

romani commented Jul 29, 2014

@sabaka noticed that code is non compilable "new" is missed , code should be like "List foo = new LinkedList<>();"

romani closed this Jul 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment