Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] JAR files present in Manifest.mf is not considered in classpath

As far as I'm aware nothing has changed in terms of jars referenced in manifest.mf - AspectJ has never chased down jar references made via manifest entries. There are two possible things that might be happening:
- AspectJ 1.7 is being a bit more keen in analysis and is chasing down more type references than 1.6 did. So now it is looking for these types where it did not previously (so it didn't matter previously that they were not on the classpath).
- The Eclipse JDT compiler upon which AspectJ is based made some changes in this area and AspectJ picked them up.

I'm probably leaning towards the first possibility. You could verify it by getting rid of the manifest in question and building with 1.6 - if it still builds ok then it wasn't the manifest references that were making a difference.  (Let me know if you try this...)

Having said that - I'm not against adding support for following manifest references to augment the classpath, but that would be a new feature request.  We can either implement this feature or work out why AspectJ is now requiring more types to be loaded in order to do its work. It can be as simple as when running on JDK7 some 'Collection' that AspectJ is creating is returning its contents in a different order than it does on 1.6.

cheers,
Andy



On 31 December 2012 02:25, sandeep wadhwa <wadhwa.sandeep@xxxxxxxxx> wrote:
Hello 

We upgraded our product to support JDK 1.7 from currently supported version 1.6. We observed that aspectJ will also be upgraded as we were facing some issues and upgraded to the latest version of AspectJ i.e. 1.7.1. 

However after upgrading to the latest version we started getting errors : 

can't determine whether missing type ObjectCannotBeDeletedException is an instance of AccreditationModel 
-2012.12.28 11:23:05       [exec]      [iajc] when weaving type AccreditationImpl 
-2012.12.28 11:23:05       [exec]      [iajc] when weaving classes 
-2012.12.28 11:23:05       [exec]      [iajc] when weaving 
-2012.12.28 11:23:05       [exec]      [iajc] when batch building BuildConfig[null] #Files=1 AopXmls=#0 
-2012.12.28 11:23:05       [exec]      [iajc]  [Xlint:cantFindType] 

After analyzing the problem for few hours we noticed that jar files mentioned in manifest.mf file has been not considered by aspectJ task and we need to explicitly define the jars in the CLASSPATH. 

However it was working fine with the earlier version of JDK and AspectJ. 

Please suggest if there is any flag to enable it. 

Thanks & Regards
SANDEEP WADHWA
Application Architect - CSC

_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-dev



Back to the top