Skip to content

Comments

Fix illegal reflective access while running tests#4173

Open
Sineaggi wants to merge 2 commits intoGoogleContainerTools:masterfrom
Sineaggi:fix-test-warning
Open

Fix illegal reflective access while running tests#4173
Sineaggi wants to merge 2 commits intoGoogleContainerTools:masterfrom
Sineaggi:fix-test-warning

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