Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid NPE in AspectJCompilerTest on AspectJ 1.9.8+ #228

Merged
merged 2 commits into from
Jun 25, 2022

Conversation

kriegaex
Copy link
Contributor

Due to changed Eclipse Compiler (JDT Core) upstream of AJC, we need to call buildArgParser.populateBuildConfig(..) in order to avoid an NPE when AjBuildConfig.getCheckedClasspaths() is called later during compilation.

Only the unit test (which is not really a unit test) is affected by this problem, because it compiles in-process. The aspectj-compiler IT was still passing before this change.

Supersedes #227. Somehow, PRs on top of other PRs are not working as expected.

Closes eclipse-aspectj/aspectj#169.

dependabot bot and others added 2 commits June 19, 2022 19:45
Bumps `aspectj.version` from 1.9.7.M3 to 1.9.9.1.

Updates `aspectjrt` from 1.9.7.M3 to 1.9.9.1
- [Release notes](https://github.com/eclipse/org.aspectj/releases)
- [Commits](https://github.com/eclipse/org.aspectj/commits)

Updates `aspectjtools` from 1.9.7.M3 to 1.9.9.1
- [Release notes](https://github.com/eclipse/org.aspectj/releases)
- [Commits](https://github.com/eclipse/org.aspectj/commits)

---
updated-dependencies:
- dependency-name: org.aspectj:aspectjrt
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.aspectj:aspectjtools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Due to changed Eclipse Compiler (JDT Core) upstream of AJC, we need to
call 'buildArgParser.populateBuildConfig(..)' in order to avoid an NPE
when AjBuildConfig.getCheckedClasspaths() is called later during
compilation.

Only the unit test (which is not really a unit test) is affected by this
problem, because it compiles in-process. The 'aspectj-compiler' IT was
still passing before this change.
@kriegaex
Copy link
Contributor Author

kriegaex commented Jun 25, 2022

@slachiewicz, the separate PR looks better than the one which tried to piggy-back on #227. The build is green, too. 🙂

@slachiewicz
Copy link
Member

Thx!

@slachiewicz slachiewicz merged commit d09514d into codehaus-plexus:master Jun 25, 2022
@kriegaex kriegaex deleted the aspectj-1.9.9.1-fix branch June 25, 2022 14:41
@olamy olamy added the bug label Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE in AjBuildConfig.computeCheckedClasspath
3 participants