java - AspectJ iajc compiler fails on child annotations -
i'm using ant 1.9.3 aspectjtools 1.8.5. when i'm trying compile project using iajc compiler failes message
[aspectj:iajc] error @ @namedqueries({ [aspectj:iajc] ^^^^^^^^^^^ [aspectj:iajc] /path/to/file/speech.java:14:0::0 speech.namedqueries not annotation type [aspectj:iajc] warning @ /path/to/file/permissioncheckeraspect.java:23::0 advice defined in package.permissioncheckeraspect has not been applied [xlint:advicedidnotmatch] [aspectj:iajc] messageholder: (10732 info) (2 warning) (1 error) [aspectj:iajc] [error 0]: error @ @namedqueries({ [aspectj:iajc] ^^^^^^^^^^^ [aspectj:iajc] /path/to/file/speech.java:14:0::0 speech.namedqueries not annotation type
my ant target configuration looks code snippet
<target name="compile.aspectj" depends="copy-libs"> <aspectj:iajc source="1.8" destdir="war/web-inf/classes"> <sourceroots> <pathelement location="src"/> </sourceroots> <classpath refid="project.class.path"/> </aspectj:iajc> </target>
i have use compile time weaving. how can deal it?
here aspect code
@aspect public class permissioncheckeraspect { private static final logger log = loggerfactory.getlogger(permissioncheckeraspect.class); public permissioncheckeraspect() { info("instantiating permissionchecker aspect"); } @around("execution(public * *(..)) && within(package.licenserequired)") public object around(proceedingjoinpoint joinpoint) { try { info("proceeding..."); object proceed = joinpoint.proceed(); info("proceeded successfully"); return proceed; } catch (throwable throwable) { throw new runtimeexception(throwable); } } }
Comments
Post a Comment