Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/303.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java编译器的一些怪癖是什么?_Java_Intellij Idea_Compilation_Compiler Errors_Javac - Fatal编程技术网

Java编译器的一些怪癖是什么?

Java编译器的一些怪癖是什么?,java,intellij-idea,compilation,compiler-errors,javac,Java,Intellij Idea,Compilation,Compiler Errors,Javac,IntelliJ有一个检查设置来警告您可能会影响代码的“Javac怪癖”,但我还没有遇到任何问题。IntelliJ或一般认为,其中有哪些怪癖?我刚刚看到“不允许将“u”用作lambda参数名”(IntelliJ IDEA CE 14.0.2) 公共静态二进制运算符tolasteElement(){ 返回(当前)->当前; } 这可能会对您有所帮助:我还没有遇到任何“怪癖”,但我只使用了17.5年。IntelliJ检测到两个“怪癖”,一个是关于注释中数组初始值设定项的尾随逗号,另一个是我无法理解的

IntelliJ有一个检查设置来警告您可能会影响代码的“Javac怪癖”,但我还没有遇到任何问题。IntelliJ或一般认为,其中有哪些怪癖?

我刚刚看到“不允许将“u”用作lambda参数名”(IntelliJ IDEA CE 14.0.2)

公共静态二进制运算符tolasteElement(){
返回(当前)->当前;
}

这可能会对您有所帮助:我还没有遇到任何“怪癖”,但我只使用了17.5年。IntelliJ检测到两个“怪癖”,一个是关于注释中数组初始值设定项的尾随逗号,另一个是我无法理解的。任何人在挖掘用于诸如“inspection.compiler.javac.quirks.anno.array.comma.problem”属性的属性文件时,都可以找到文本描述。
public static <T> BinaryOperator<T> toLastElement() {
    return (_, current) -> current;
}