On Thu, 3 Feb 2022 15:26:40 GMT, Martin Desruisseaux <d...@openjdk.java.net> 
wrote:

> This commit fixes a `RasterFormatException` thrown when 
> `Graphics2D.drawRenderedImage(…)` is invoked with an image containing tiles 
> that are instances of `Raster` but not `WritableRaster`.
> 
> https://bugs.openjdk.java.net/browse/JDK-8275345

Changes requested by prr (Reviewer).

test/jdk/java/awt/image/DrawImage/TiledImage.java line 1:

> 1: import java.awt.Graphics2D;

The fix itself looks good but the test needs work.
It needs the GPLv2 - like all the other tests, and is missing the jtreg tags 
which allow the test harness to identify it as a test. and a few orher tags. 
Again take a look at other tests. Note that since you don't create any windows 
you will NOT need the @headful tag.

test/jdk/java/awt/image/DrawImage/TiledImage.java line 26:

> 24:  *
> 25:  * <pre>
> 26:  * Exception in thread "main" java.awt.image.RasterFormatException: 
> (parentX + width) is outside raster

No point in HTML here ... nothing runs on this javadoc.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7337

Reply via email to