clankill3r
clankill3r

Reputation: 9543

Project sdk 1.7 with Project language level 8

Is the following a valid combination: Project SDK 1.7 with Project language level 8.

enter image description here

I keep hitting:

Error:java: invalid source release: 1.8

But I don't want to delete my lambdas.

Upvotes: 0

Views: 230

Answers (1)

Mureinik
Mureinik

Reputation: 311798

Not quite sure why any IDE would let you choose such a combination (might be worth reporting a bug on it), as this is not a valid combination. You cannot use language features from a higher version than your SDK - the compiler just won't know how to treat the new syntax.

Upvotes: 1

Related Questions