9

我在我们的应用程序中使用一个方面得到了错误。

我需要什么来解决这个错误或者这对我说了什么?

[AppClassLoader@13b8f62] error can't determine superclass of missing type xxx.yyy.zzz.execution.SystemVersion
when weaving type xxx.yyy.zzz.execution.DefaultDServerConfigurator
when weaving classes 
when weaving 
 [Xlint:cantFindType]
4

3 回答 3

9

将选项更改cantFindType

{cantFindType = warning}

ajc.properties文件中解决了我的问题。

您可以指定属性文件-Xlintfile d:\temp\ajc.properties

于 2013-05-27T08:40:32.740 回答
5

这意味着在编织 type 时xxx.yyy.zzz.execution.DefaultDServerConfigurator,该类型xxx.yyy.zzz.execution.SystemVersion是必需的,但由于缺少依赖项,因此无法加载 SystemVersion 或其超类。

本质上,这些方面需要在运行时不在您的类路径中的额外类文件/jar。

于 2012-05-14T19:26:08.137 回答
5

oracle 和 kamon-jdbc 有同样的问题,添加以下resources/META-INF/aop.xml文件有帮助:

 <!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">

 <aspectj>
     <weaver options="-Xlint:ignore">
         <include within="oracle.jdbc..*"/>
     </weaver>
 </aspectj>
于 2019-02-22T08:48:00.447 回答