You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On JDK 17, when unit tests pass, there should be no module access errors when running the distribution package.
Current Behavior
If the application is manipulating with java.util or java.lang classes using some reflection (e.g. by using some lib), this will fail at runtime, even though the unit tests passed, because java.base/java.lang and java.base/java.util are automatically opened for gradle workers.
Context
We are using jersey declarative linking, which is automatically traversing all classes using reflection. This can be controlled by an annotation, however a missing annotation cannot be caught by a test because it will work on the gradle worker.
Steps to Reproduce
Field.setAccessible(true) on some field from the packages above will work in tests, but not in standalone app.
Your Environment
Gradle 7.3.3
The text was updated successfully, but these errors were encountered:
Expected Behavior
On JDK 17, when unit tests pass, there should be no module access errors when running the distribution package.
Current Behavior
If the application is manipulating with java.util or java.lang classes using some reflection (e.g. by using some lib), this will fail at runtime, even though the unit tests passed, because java.base/java.lang and java.base/java.util are automatically opened for gradle workers.
Context
We are using jersey declarative linking, which is automatically traversing all classes using reflection. This can be controlled by an annotation, however a missing annotation cannot be caught by a test because it will work on the gradle worker.
Steps to Reproduce
Field.setAccessible(true) on some field from the packages above will work in tests, but not in standalone app.
Your Environment
Gradle 7.3.3
The text was updated successfully, but these errors were encountered: