Kotlin compilation error: unresolved AspectJ supertype
Kotlin compilation error: unresolved AspectJ supertype
我正在尝试在我的 Kotlin 项目中使用 Java 库。
在我的项目中创建库中定义的类型的变量工作正常,例如val foo: Foo = fooProvider.get()
,但引入实际上 使用 这些类型的代码,例如foo.toString()
,导致编译错误:
Error:Kotlin: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class com.example.Foo, unresolved supertypes: ajcMightHaveAspect
根据我目前所发现的,我的示例 Foo
类型 implements
ajcMightHaveAspect
这是某种类型的 AspectJ 接口。
aspectjrt
在我的类路径中,但我找不到在任何地方定义的 ajcMightHaveAspect
。
这是 Kotlin 编译器的错误吗?我做错了什么吗?
问题已在 AspectJ
中修复。
有关详细信息,请参阅 https://bugs.eclipse.org/bugs/show_bug.cgi?id=493554。
希望对您有所帮助。
我正在尝试在我的 Kotlin 项目中使用 Java 库。
在我的项目中创建库中定义的类型的变量工作正常,例如val foo: Foo = fooProvider.get()
,但引入实际上 使用 这些类型的代码,例如foo.toString()
,导致编译错误:
Error:Kotlin: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class com.example.Foo, unresolved supertypes: ajcMightHaveAspect
根据我目前所发现的,我的示例 Foo
类型 implements
ajcMightHaveAspect
这是某种类型的 AspectJ 接口。
aspectjrt
在我的类路径中,但我找不到在任何地方定义的 ajcMightHaveAspect
。
这是 Kotlin 编译器的错误吗?我做错了什么吗?
问题已在 AspectJ
中修复。
有关详细信息,请参阅 https://bugs.eclipse.org/bugs/show_bug.cgi?id=493554。
希望对您有所帮助。