8258986: getColor throws IOOBE when PixelReader reads the same pixel twice #389
As indicated in the JBS bug, using a
The bug is in the
The fix is to only wrap an
I added a test, which is run for both scaled and unscaled images, to ensure that we get the right value when reading a pixel, and that reading it a second time returns the same result. Without the fix, the new test will fail with IOOBE when the scale factor is two. Related to this, I initially commented out the wrapping in a
@kevinrushforth This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 10 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
@kevinrushforth Since your change was applied there have been 10 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit e85ce5a.