-
Notifications
You must be signed in to change notification settings - Fork 361
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
Conversation
d0f3c75
to
748493d
Compare
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 |
This may be complicated by nextgenhealthcare/connect#4422 and https://issues.apache.org/jira/browse/SPARK-37843 |
@@ -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) |
There was a problem hiding this comment.
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 ¯\_(ツ)_/¯
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
Closes #3301