apache / apache/maven-compiler-plugin
[MCOMPILER-194] Strange effects with springs @Configurable (AspectJ) and new compiler plugin version 3.0
- Dominant language
- Java
- Stars
- 261
- Forks
- 191
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 8
Description
**[Andreas Höhmann](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ahoehma)** opened **[MCOMPILER-194](https://issues.apache.org/jira/browse/MCOMPILER-194?redirect=false)** and commented
I have no details I can only report the "effects" ..
I have a maven project with compiler-plugin 2.5.1,
aspectj-plugin 1.4, java 1.6 and a lot of `@Configurable`
annotations in my code. Aspectj will decorate these classes
so `@Autowired` dependencies injected during runtime.
All is working fine.
Now I switch to compiler-plugin 3.0 ... nothing else changed!
Then "sometimes" I got NPE's because the injected service etc. are
not available. I guess aspectj was not successfull. I have no
errors etc. anywhere during build.
Strang :)
---
**Affects:** 3.0
**Attachments:**
- [MCOMPILER-194.zip](https://issues.apache.org/jira/secure/attachment/12915014/MCOMPILER-194.zip) (_3.73 kB_)
- [SO_AJ_MavenSoftExceptions.zip](https://issues.apache.org/jira/secure/attachment/12714923/SO_AJ_MavenSoftExceptions.zip) (_2.86 kB_)
**Issue Links:**
- [MCOMPILER-187](https://issues.apache.org/jira/browse/MCOMPILER-187) incremental stuff detect changes even if nothing has changed means too much compilation
(_**"is broken by"**_)
- [MCOMPILER-205](https://issues.apache.org/jira/browse/MCOMPILER-205) incremental compilation broken for package-info classes
4 votes, 8 watchers
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.