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 broken DownsamplerEmulatorTest due to class-not-found regression #5365

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

falhassen
Copy link
Collaborator

@falhassen falhassen commented Feb 2, 2024

The changes to DownsamplerSamplerEmulatorTest in #5357 broke the test, with errors loading the SDK level 34 class, android.graphics.Gainmap:

"Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.Gainmap" on path"

Apparently, the test runner does a class resolution of all method signatures, even if they have a @RequiresApi annoation. This will fail on emulators that have SDK levels that don't include the class. Also, even import statements seem to fail.

I basically inlined the method, which is version-guarded, and removed the explicit import.

@kanelbulle kanelbulle enabled auto-merge (rebase) February 2, 2024 20:11
@kanelbulle kanelbulle merged commit fcace5b into bumptech:master Feb 2, 2024
4 checks passed
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