Re: [aspectj-users] Intercepting constructors that handle exceptions

2009-06-12 Thread Ramnivas Laddad
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

[aspectj-users] Intercepting constructors that handle exceptions

2009-06-12 Thread João Paulo Sabino de Moraes
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

[aspectj-users] Problem using custom classloader with load time weaving

2009-06-12 Thread Jesse Englert
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

[aspectj-users] Re: weaving existing OSGi jars and exclusion of aspect classes

2009-06-12 Thread Captain Haddock
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

Re: [aspectj-users] weaving existing OSGi jars and exclusion of aspect classes

2009-06-12 Thread Simone Gianni
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

[aspectj-users] Sources on Maven

2009-06-12 Thread Simone Gianni
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

[aspectj-users] weaving existing OSGi jars and exclusion of aspect classes

2009-06-12 Thread Captain Haddock
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

[aspectj-users] Re: maven examples please

2009-06-12 Thread Captain Haddock
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

[aspectj-users] Re: maven examples please

2009-06-12 Thread Captain Haddock
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