Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 1.0
-
Fix Version/s: 1.0
-
Component/s: compiler
-
Labels:None
-
Environment:- Maven 1.0.2
- J2SDK 1.4.2 for Compiling;
- JRockIt (Linux/ia32, Linux/ia64, Win2K Server)
- AspectJ 1.5.0
- ASM 2.2 (recompiled using this version)
- Backport175 1.0
-
Number of attachments :
Description
- Compiling Annotations fails when using AspectJ5;
- This issue is mostly related to AspectJ5 inconsistent Attribute handling;
- To solve it:
- Copy CustomAttribute.java from Cobertura, creating org.codehaus.backport175.compiler.bytecode.CustomAttribute;
- In AnnotationEnhancer.java, in write(final String destDir), replace this line:
- m_reader.accept(new AnnotationMungingVisitor(writer), false);
- Into:
- m_reader.accept(new AnnotationMungingVisitor(writer), CustomAttribute.getExtraAttributes(), false);
- However, I'm not sure this is a kosher solution. After all, the aforementioned Cobertura snippet is GPL'd;