无法调用“org.eclipse.jdt.internal.compiler.lookup.数组绑定.元素类型()”,因为“数组绑定”为空

zzzyeukh  于 2022-12-03  发布在  Eclipse
关注(0)|答案(1)|浏览(248)

我使用的是SpringToolSuite:
版本:4.16.1.发布版本ID:202210240748修订版本:一种用于汽车的制动器
与m2 e一起
Eclipse.org - Eclipse核心2.1.2的M2 E Maven集成。20221130 -2239
自从上次更新以来......自从今天以来......我得到了我所有的项目这个错误:
构建期间出错。对项目'rest-service'运行构建器'Java Builder'时出错。无法调用“org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()”,因为“arrayBinding”为空
以下是eclips error-log-view的详细信息:

java.lang.NullPointerException: Cannot invoke "org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()" because "arrayBinding" is null
at org.eclipse.jdt.internal.compiler.codegen.CodeStream.newArray(CodeStream.java:6656)
at org.eclipse.jdt.internal.compiler.codegen.TypeAnnotationCodeStream.newArray(TypeAnnotationCodeStream.java:87)
at org.eclipse.jdt.internal.compiler.ast.ArrayInitializer.generateCode(ArrayInitializer.java:82)
at org.eclipse.jdt.internal.compiler.ast.ArrayInitializer.generateCode(ArrayInitializer.java:70)
at org.eclipse.jdt.internal.compiler.ast.ReturnStatement.generateCode(ReturnStatement.java:232)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:355)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:292)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:761)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:824)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:754)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:831)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:412)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:916)
at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:145)
at java.base/java.lang.Thread.run(Thread.java:1589)

我开了一个m2 e的问题...也许最后它与m2 e无关...但只是为了分享... https://github.com/eclipse-m2e/m2e-core/issues/1111

pu82cl6c

pu82cl6c1#

天啊...真实的的原因完全不同:)
Eclipse内部编译器错误是由于lombok注解引起的,这是Eclipse建议的(可能是sonarlint?或者lombok?没有胶水)...但是当我将@Default注解添加到数组字段时... Eclipse崩溃:-O

我报道了一个Lombok岛的问题:https://github.com/projectlombok/lombok/issues/3306

相关问题