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

Workaround Java 17 strong encapsulation #58

Merged
merged 2 commits into from
May 28, 2024

Conversation

mackdk
Copy link
Contributor

@mackdk mackdk commented May 28, 2024

This PR fixes the issues with strong encapsulation enabled when running on a Java 17 JVM. The Drools version used in subscription-matcher make use of the ClassLoader protected method defineClass, thus needs to be able to set it as accessibile.

This is just a temporary workaround. The proper fix is to migrate to a Drools version >= 7.49.0, which solves the issue by rewriting the code to avoid the reflective access.

@mackdk mackdk requested a review from mcalmer May 28, 2024 14:05
Copy link

sonarcloud bot commented May 28, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@mackdk mackdk merged commit b74bc95 into uyuni-project:master May 28, 2024
2 checks passed
@mackdk mackdk deleted the fix-java17-modularity branch May 28, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants