Skip to content

Add JDK11 cross compilation - #3435

Merged
pomadchin merged 4 commits into
locationtech:masterfrom
pomadchin:feature/jdk11
Sep 14, 2023
Merged

pomadchin merged 4 commits into
locationtech:masterfrom
pomadchin:feature/jdk11

Conversation

@pomadchin

Copy link
Copy Markdown
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

pomadchin commented Oct 28, 2021 •

Copy link
Copy Markdown
Member Author
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
Copy Markdown
Member Author

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)

@pomadchin pomadchin Sep 14, 2023 •

Copy link
Copy Markdown
Member Author

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
@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