RFR: 8370637: [Windows] Crash if use Graphics after PrintJob.end [v2]

Phil Race prr at openjdk.org
Tue Nov 4 22:15:28 UTC 2025


On Tue, 4 Nov 2025 22:08:23 GMT, Phil Race <prr at openjdk.org> wrote:

>> src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp line 1589:
>> 
>>> 1587:     if ((HDC)dc != NULL) {
>>> 1588:         DeletePrintDC((HDC)dc);
>>> 1589:      }
>> 
>> Suggestion:
>> 
>>     if ((HDC)dc != NULL) {
>>         DeletePrintDC((HDC)dc);
>>     }
>> 
>> 
>> The closing brace is misaligned here and in all other cases.
>
> I missed this comment. fixing.

I missed this comment. fixing.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27984#discussion_r2492178139


More information about the client-libs-dev mailing list