Skip to content

Backport JDK-8048782: OpenJDK: PiscesCache : xmax/ymax rounding up can cause RasterFormatException#94

Merged
bernd-aws merged 1 commit intocorretto:developfrom
sci-aws:JDK-8048782
Mar 21, 2019
Merged

Backport JDK-8048782: OpenJDK: PiscesCache : xmax/ymax rounding up can cause RasterFormatException#94
bernd-aws merged 1 commit intocorretto:developfrom
sci-aws:JDK-8048782

Conversation

@sci-aws
Copy link
Copy Markdown
Contributor

@sci-aws sci-aws commented Mar 20, 2019

In reference to issue: #93

Describe the bug
JDK-8048782 describes an issue where sun.java2d.pisces.PiscesCache constructor that accepts min/max x and y arguments - the internal 'bboxX1' and 'bboxY1' are set to values one greater than given maximum X and Y values. This effectively causes an "off by 1" error.

The fix has already been backported to OpenJDK9 and should also be brought back to OpenJDK8 as we've experienced this issue first hand.

References:
https://bugs.openjdk.java.net/browse/JDK-8048782
http://mail.openjdk.java.net/pipermail/2d-dev/2014-June/004652.html

To Reproduce
An sample application in the JBS issue is available, along with a JTREG test in the patch.

Expected behavior
The sample program and JTREG should pass.

Platform information
All supported platforms and OS versions.

Additional context
Although this has been back ported in OpenJDK8 and will be available for u222 we have experienced this issue first hand and need to be pro-active in making this fix available now.

@sci-aws sci-aws added the bug Something isn't working label Mar 20, 2019
@sci-aws sci-aws requested a review from bernd-aws March 20, 2019 19:12
@bernd-aws bernd-aws merged commit 57da39c into corretto:develop Mar 21, 2019
alvdavi added a commit to alvdavi/corretto-8 that referenced this pull request Jun 5, 2019
… rounding up can cause RasterFormatException (corretto#94)"

This reverts commit 57da39c.

This commit has caused rendering issues like corretto#127 and corretto#128 and will be reverted for 8u222
alvdavi added a commit to alvdavi/corretto-8 that referenced this pull request Jun 5, 2019
… rounding up can cause RasterFormatException (corretto#94)"

This reverts commit 57da39c.

This commit has caused rendering issues like corretto#127 and corretto#128 and will be reverted for 8u222
alvdavi added a commit to alvdavi/corretto-8 that referenced this pull request Jun 13, 2019
… rounding up can cause RasterFormatException (corretto#94)"

This reverts commit 57da39c.

This commit has caused rendering issues like corretto#127 and corretto#128 and will be reverted for 8u222
bernd-aws pushed a commit that referenced this pull request Jun 13, 2019
… rounding up can cause RasterFormatException (#94)"

This reverts commit 57da39c.

This commit has caused rendering issues like #127 and #128 and will be reverted for 8u222
alvdavi added a commit to alvdavi/corretto-8 that referenced this pull request Jun 18, 2019
… rounding up can cause RasterFormatException (corretto#94)"

This reverts commit 57da39c.
bernd-aws pushed a commit that referenced this pull request Jul 18, 2019
… rounding up can cause RasterFormatException (#94)"

This reverts commit 57da39c.

This commit has caused rendering issues like #127 and #128 and will be reverted for 8u222
@tillmannseidel
Copy link
Copy Markdown

tillmannseidel commented Nov 29, 2019

As a result of the revert, this bug fix is contained in Corretto 8.212 but not in 8.222 or 8.232. And this is not even mentioned in the change log.

Will there be a replacement for the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants