Hear us Roar
Article:
 |
|
Introduction to Aspect-Oriented Programming
|
| Subject: |
|
compilation errors |
| Date: |
|
2007-12-31 04:21:00 |
| From: |
|
treoubo
|
|
|
When I build the sampl eexample, i get following errors.
P)lz suggest.
Buildfile: build.xml
build:
[javac] Compiling 4 source files to C:\code\demo\WEB-INF\classes
[javac] WARNING
[javac] The -source switch defaults to 1.5 in JDK 1.5.
[javac] If you specify -target 1.3 you now must also specify -source 1.3.
[javac] Ant will implicitly add -source 1.3 for you. Please change your build file.
[javac] C:\code\demo\WEB-INF\src\example\PersistenceAdvice.java:5: package org.codehaus.aspectwerkz.advice does not exist
[javac] import org.codehaus.aspectwerkz.advice.AroundAdvice;
[javac] ^
[javac] C:\code\demo\WEB-INF\src\example\PersistenceAdvice.java:7: cannot find symbol
[javac] symbol : class MethodJoinPoint
[javac] location: package org.codehaus.aspectwerkz.joinpoint
[javac] import org.codehaus.aspectwerkz.joinpoint.MethodJoinPoint;
[javac] ^
[javac] C:\code\demo\WEB-INF\src\example\PersistenceAdvice.java:10: cannot find symbol
[javac] symbol: class AroundAdvice
[javac] public class PersistenceAdvice extends AroundAdvice {
[javac] ^
[javac] C:\code\demo\WEB-INF\src\example\PersistenceAdvice.java:19: cannot find symbol
[javac] symbol : class MethodJoinPoint
[javac] location: class example.PersistenceAdvice
[javac] MethodJoinPoint jp = (MethodJoinPoint) joinPoint;
[javac] ^
[javac] C:\code\demo\WEB-INF\src\example\PersistenceAdvice.java:19: cannot find symbol
[javac] symbol : class MethodJoinPoint
[javac] location: class example.PersistenceAdvice
[javac] MethodJoinPoint jp = (MethodJoinPoint) joinPoint;
[javac] ^
[javac] Note: C:\code\demo\WEB-INF\src\example\PersistenceAdvice.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 5 errors
BUILD FAILED
C:\code\demo\build.xml:48: Compile failed; see the compiler error output for details.
|
|
| |