RFR: 8272288: Funky multiresolution image breaks graphics context

Jayathirth D V jdv at openjdk.org
Wed Feb 8 05:36:44 UTC 2023


On Mon, 6 Feb 2023 22:01:28 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> test/jdk/java/awt/image/VolatileImage/ReportRenderingError.java line 91:
>> 
>>> 89:             Graphics2D g = vi.createGraphics();
>>> 90:             g.setColor(Color.RED);
>>> 91:             g.drawImage(image, 0, 0, null); // <- can cause InvalidPipeException
>> 
>> This drawImage call is expected to through InvalidPipeException all the times or is it intermittent?
>> If it is intermittent why so? Please explain.
>> 
>> It looks like after https://github.com/openjdk/jdk/commit/8da6c8d6 we will through InvalidPipeException for all cases of custom images and not intermittently.
>
> It is not really intermittent but depends on the java2d pipeline currently in use. InvalidPipeException is produced by the accelerated pipelines but code works fine on GDI for example.

Thanks for the clarification

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

PR: https://git.openjdk.org/jdk/pull/11664



More information about the client-libs-dev mailing list