Bug 459945 - Using -xmlConfigured with an aspect that has 'perthis' or 'pretarget' causes crash
Summary: Using -xmlConfigured with an aspect that has 'perthis' or 'pretarget' causes ...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.8.5   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-14 10:03 EST by Paul Brooks CLA
Modified: 2015-02-14 10:07 EST (History)
0 users

See Also:


Attachments
Simple reproducible case (5.94 KB, application/zip)
2015-02-14 10:03 EST, Paul Brooks CLA
no flags Details
ajcore (17.19 KB, text/plain)
2015-02-14 10:04 EST, Paul Brooks CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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