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

Fix illegal reflective access while running tests #4173

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Sineaggi
Copy link
Contributor

@Sineaggi Sineaggi commented Jan 23, 2024

Fixes tests from emitting warning when mocking Optional, a final class

> Task :jib-core:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.mockito.internal.util.reflection.ReflectionMemberAccessor (file:/Users/cwalker/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-core/4.11.0/ce5226440c2ee78915716d4ce3d10aed2dbf26fb/mockito-core-4.11.0.jar) to constructor java.util.Optional()
WARNING: Please consider reporting this to the maintainers of org.mockito.internal.util.reflection.ReflectionMemberAccessor
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

@Sineaggi Sineaggi changed the title https://github.com/Sineaggi/jib/pull/new/fix-test-warningFix warning Fix warning Jan 23, 2024
@Sineaggi Sineaggi changed the title Fix warning Fix illegal reflective access while running tests Aug 3, 2024
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.

1 participant