[英]Project sdk 1.7 with Project language level 8
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. 不太确定为什么任何IDE都会允许您选择这样的组合(可能值得报告其错误),因为这不是有效的组合。 You cannot use language features from a higher version than your SDK - the compiler just won't know how to treat the new syntax. 您不能使用比SDK更高版本的语言功能-编译器只是不知道如何对待新语法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.