Community
Participate
Working Groups
Created attachment 263174 [details] ajc crash I have two-step compilation with ajc: 1) compile only aj-sources, so no -aspectpath, -inpath paramenters. In -sourceroots only generated java-sources (annotation processors, etc.) and aj-files set. 2) weave hole project with a separate task, so no -sourceroots param, but -aspectpath and -path are lead to all the jars and build directories with .class files. I got a crash in ajc :( Maybe some point I lost? Sorry for marking 'major', but this thing important in building development instrument for Android I'm working on :)
That error, in particular the: org.aspectj.apache.bcel.classfile.ConstantFieldref cannot be cast to org.aspectj.apache.bcel.classfile.ConstantUtf8 suggests something else has modified the classfiles between step (1) producing them and step (2) reprocessing them. Any kind of trip through some other tool maybe adversely affect the constant pool ordering and the encoded constant pool references in the aspectJ attributes will then be wrong. Are you sure there isn't another tool doing something in the meantime?