Reputation: 9543
Is the following a valid combination: Project SDK 1.7 with Project language level 8.
I keep hitting:
Error:java: invalid source release: 1.8
But I don't want to delete my lambdas.
Upvotes: 0
Views: 230
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