I am not entirely sure about the question, but I think you need
something along the following lines:
void around(Object uc, File f) throws Exception : Test(uc,f) {
try {
proceed(uc, f);
} catch (Exception ex) {
... your exception processing logic
}
}
O
Hi Folks,
I've made a pointcut that intercepts a constructor,:
pointcut Test(Bank uc, File f) : execution(public Bank.new(File)) && args(f)
&& this(uc);
the constructor handles an exception...but I don't know how to intercept it.
I 've tried sorrounding proceed() whit try catch but it didn't run
I'm
having some trouble loading aspect classes during load time weaving
with my custom ClassLoader. Here's the senario:
1. All non-aspect classes are compiled with Sun JDK 1.6.
2. All aspect classes are compiled with AspectJ 1.6.4.
3. All .class files, including aspect .class files, are enc
Simone Gianni wrote:
Hi Haddock,
what you are talking about are "Aspect Libraries", that is a jar
containing aspect that is then applied to other classes. This can be
done by ajc and by the maven plugin. Let's call the jar containing the
aspects "library" and the jar containing classes to be w
Hi Haddock,
what you are talking about are "Aspect Libraries", that is a jar
containing aspect that is then applied to other classes. This can be
done by ajc and by the maven plugin. Let's call the jar containing the
aspects "library" and the jar containing classes to be woven "target".
Obvio
Just to let others know about it, Ramnivas noticed that on the Maven
repos not all source jars were uploaded. This was caused by a known bug
in Maven and my inability with Ant :D . Andy found a temporary work
around and sources are now there for all AspectJ artifacts for version
1.6.4, I hope t
Ultimately trying to do the following:
- all aspect classes will be included in a single OSGi bundle
- existing OSGi bundles will be woven with aspects
Instead of including the aspect classes in the resulting bundle, I would
like to update the OSGi bundle's dependencies to include the OSGi bund
Found answer at:
http://toolslab.com/content/fixing-java-15-source-problems-with-aspectj-maven-plugin-154
Captain Haddock wrote:
ok so I was on the right lines .. however I am using annotations and my
compile fails as shown below:
...
[INFO] [aspectj:compile {execution: default}]
[ERROR] Synt
ok so I was on the right lines .. however I am using annotations and my
compile fails as shown below:
...
[INFO] [aspectj:compile {execution: default}]
[ERROR] Syntax error, annotations are only available if source level is 5.0
[ERROR] Syntax error, annotations are only available if source level