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

Add JDK11 cross compilation #3435

Merged
merged 4 commits into from
Sep 14, 2023
Merged

Conversation

pomadchin
Copy link
Member

Overview

This PR adds CI test that run tests against JDK11. Mb to do a total switch to JDK11 with the target pointing to 1.8?

Checklist

  • ./CHANGELOG.md updated, if necessary. Link to the issue if closed, otherwise the PR.

Closes #3301

@pomadchin
Copy link
Member Author

pomadchin commented Oct 28, 2021

github-test-jdk11-1  | [info] *** 2 TESTS FAILED ***
github-test-jdk11-1  | [error] Failed: Total 1533, Failed 2, Errors 0, Passed 1531
github-test-jdk11-1  | [error] Failed tests:
github-test-jdk11-1  | [error] 	geotrellis.raster.reproject.ReprojectSpec
github-test-jdk11-1  | [error] 	geotrellis.raster.render.png.RenderPngTests

@pomadchin
Copy link
Member Author

@@ -339,7 +339,7 @@ class RenderPngTests extends AnyFunSuite with Matchers with TileBuilders with Ra
val stops = Array(10000, 20000, 30000, 40000, 50000, 60000, 70000)
val colorMap = ColorMap(stops, ramp)

val greyPng = colorMap.render(tile).map(z => z >> 8 & 0xFF).renderPng(GreyPngEncoding(0x00))
val greyPng = colorMap.render(tile).map(z => z >> 8 & 0xFF).renderPng(GreyPngEncoding)
Copy link
Member Author

@pomadchin pomadchin Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question why it worked, technically it was written as an greya image with colorType set to 0 in header that could be considered by some readers as grey (header) and by others as greya (header + the data structure).

JDK 11 ImageIO added some heuristics to convert grey into greya based on the actual data written not only based on the header info ¯\_(ツ)_/¯

@pomadchin pomadchin marked this pull request as ready for review September 14, 2023 03:01
@pomadchin pomadchin merged commit b564924 into locationtech:master Sep 14, 2023
5 checks passed
@pomadchin pomadchin deleted the feature/jdk11 branch September 14, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JDK 11 CI Builds
1 participant