This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have an aspect configured for several method for some backend processes.
Now methods are getting increased with diverse package names.
I want to configure my aspect for a specific annotation which i can decorate to all the target methods.
I am using NetBeans 6.7.1, JDK 6, Spring 3.0 and AspectJ 1.6.5. I have set my aspect like this:
When i try to run the application it shows me this error:
Caused by: java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
Stupid question here, but what are you running it in. I mean I see you are developing in Netbeans, but at runtime are you running a server inside Netbeans, or a standalone server where that standalone server might not be using Java 5?
I am not running any server. It is a simple standalone javase app which gives me error while loading the spring-config file.
I posted the error only after modifing the ant (build.xml) script to make source level 1.5.
Mark i am facing a problem.
I posed it here because i am using Spring AOP.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com