完全错误:
ClassCastException: class com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to class javax.lang.model.element.PackageElement (com.sun.tools.javac.code.Symbol$ClassSymbol is in module jdk.compiler of loader 'app'; javax.lang.model.element.PackageElement is in module java.compiler of loader 'platform')
关于:
IntelliJ IDEA 2021.1 (Ultimate Edition)
Build #IU-211.6693.111, built on April 6, 2021
Runtime version: 11.0.10+9-b1341.35 x86_64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
macOS 11.2.3
GC: ParNew, ConcurrentMarkSweep
Memory: 3987M
Cores: 16
Non-Bundled Plugins: name.kropp.intellij.makefile (211.6693.108), CheckStyle-IDEA (5.51.0), org.jetbrains.kotlin (211-1.4.32-release-IJ6693.72), org.jetbrains.plugins.go (211.6693.111)
Kotlin: 211-1.4.32-release-IJ6693.72
1条答案
按热度按时间ccgok5k51#
通过禁用
Default
设置中的注解处理:似乎它与任何特定于项目的代码都无关。在禁用它之后,它会以某种方式自动启用,但代码至少会运行!