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

WELD-2744 CFW update and needed changes to keep operating correctly on JDK 17+ #2847

Merged
merged 2 commits into from Jun 12, 2023

Conversation

manovotn
Copy link
Contributor

@manovotn manovotn commented Jun 7, 2023

CFW in version 1.3.0.Final includes following commit - jbossas/jboss-classfilewriter@4028c25

This means as soon as DefaultClassFactory.INSTANCE gets initialized, you need --add-opens to be able to execute the code in there - else you're getting an exception.
Even though we never use CFW to define classes, this still affects us because of the way we instantiate ClassFile in our ProxyFactory - we use a deprecated method that now gets re-routed to a default implementation of the class factory.

In order to bypass this, we need to use a variant of the ClassFile method where we specify CL as well as ClassFactory instance. This PR uses dummy variant to do just that.

Bumps [jboss-classfilewriter](https://github.com/jbossas/jboss-classfilewriter) from 1.2.5.Final to 1.3.0.Final.
- [Release notes](https://github.com/jbossas/jboss-classfilewriter/releases)
- [Commits](jbossas/jboss-classfilewriter@1.2.5.Final...1.3.0.Final)

---
updated-dependencies:
- dependency-name: org.jboss.classfilewriter:jboss-classfilewriter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@manovotn manovotn changed the title CFW update and needed changes to keep operating correctly on JDK 17+ WELD-2744 CFW update and needed changes to keep operating correctly on JDK 17+ Jun 7, 2023
@manovotn manovotn requested a review from mkouba June 7, 2023 11:28
@manovotn
Copy link
Contributor Author

All tests passes, going to merge this.

@manovotn manovotn merged commit 19b0ffb into weld:master Jun 12, 2023
12 checks passed
@manovotn manovotn deleted the cfwUpdate branch June 12, 2023 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants