gpt4 book ai didi

java - Eclipse 在抛出 "Throwable during asyncExec Malformed class name"后崩溃

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:08:38 26 4
gpt4 key购买 nike

我的 Eclipse 工作台在抛出错误后关闭:

Throwable during asyncExec
Malformed class name

附上截图。

enter image description here

enter image description here

错误如下

!ENTRY org.scala-ide.sdt.core 4 0 2018-04-21 12:10:18.717
!MESSAGE Throwable during asyncExec
!STACK 0
java.lang.InternalError: Malformed class name
at java.lang.Class.getSimpleName(Unknown Source)
at java.lang.Class.isAnonymousClass(Unknown Source)
at org.scalaide.core.internal.logging.log4j.Log4JFacade$Logger$.apply(Log4JFacade.scala:60)
at org.scalaide.core.internal.logging.log4j.Log4JFacade.getLogger(Log4JFacade.scala:68)
at org.scalaide.logging.HasLogger.logger(HasLogger.scala:19)
at org.scalaide.logging.HasLogger.logger$(HasLogger.scala:17)
at org.scalaide.core.internal.launching.JUnit4TestClassesCollector.logger$lzycompute(JUnit4TestClassesCollector.scala:17)
at org.scalaide.core.internal.launching.JUnit4TestClassesCollector.logger(JUnit4TestClassesCollector.scala:17)
at org.scalaide.core.internal.launching.JUnit4TestClassesCollector.getClassSafe(JUnit4TestClassesCollector.scala:82)
at org.scalaide.core.internal.launching.JUnit4TestClassesCollector.RunWithAnnotationOpt$lzycompute(JUnit4TestClassesCollector.scala:74)
at org.scalaide.core.internal.launching.JUnit4TestClassesCollector.RunWithAnnotationOpt(JUnit4TestClassesCollector.scala:74)
at org.scalaide.core.internal.launching.JUnit4TestClassesCollector$JUnit4TestClassesTraverser.hasRunWithAnnotation(JUnit4TestClassesCollector.scala:59)
at org.scalaide.core.internal.launching.JUnit4TestClassesCollector$JUnit4TestClassesTraverser.isTestClass(JUnit4TestClassesCollector.scala:57)
at org.scalaide.core.internal.launching.JUnit4TestClassesCollector$JUnit4TestClassesTraverser.$anonfun$isRunnableTestClass$1(JUnit4TestClassesCollector.scala:44)
at scala.runtime.java8.JFunction0$mcZ$sp.apply(JFunction0$mcZ$sp.java:12)
at scala.tools.nsc.util.InterruptReq.execute(InterruptReq.scala:26)
at scala.tools.nsc.interactive.Global.$anonfun$pollForWork$1(Global.scala:444)
at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:418)
at scala.tools.nsc.interactive.PresentationCompilerThread.run(PresentationCompilerThread.scala:22)

最佳答案

这是一个使用 eclipse scala-IDE 和 maven 的已知问题。当你有一个案例类时,它就会发生。 https://github.com/scala/bug/issues/2034

复制案例类并将其放入 scala 对象类(如内部类),不要将其放在对象类之外。

或者切换到intellij,据我所知,这些是唯一的解决方案

关于java - Eclipse 在抛出 "Throwable during asyncExec Malformed class name"后崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49934087/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com