Bug 459945

Summary: Using -xmlConfigured with an aspect that has 'perthis' or 'pretarget' causes crash
Product: [Tools] AspectJ Reporter: Paul Brooks <paul>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 1.8.5   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Simple reproducible case
none
ajcore none

Description Paul Brooks CLA 2015-02-14 10:03:18 EST
Created attachment 250798 [details]
Simple reproducible case

My project contains several of its own aspects that I've been using successfully for some time.  I'm using CTW.

I recently needed to bring in a third party dependency (spring-tx.jar) so I could start using one of their aspects.

In order to avoid having a lot of other unnecessary spring jars on the class path I started to use -xmlConfigured so I could pick and choose the aspects that I wanted to weave.

One of my aspects is configured as 'perthis' and when this aspect is specified in the configuration file it causes the compilation to crash.

Reproducible on arc 1.7 & 1.8.

Simple test case attached with error dump in root directory.

Just try to compile it with something like:

ajc -xmlConfigured aop.xml -d out -sourceroots src -classpath /path/to/aspectjrt.jar -verbose -source 1.7 -target 1.7
Comment 1 Paul Brooks CLA 2015-02-14 10:04:26 EST
Created attachment 250799 [details]
ajcore

Adding ajcore