简体   繁体   中英

Project sdk 1.7 with Project language level 8

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM