<i18n dev> RFR: JDK-8303950: [macos]Translucent Windows Flicker on Repaint [v4]

Damon Nguyen dnguyen at openjdk.org
Fri Apr 7 18:41:46 UTC 2023


On Fri, 7 Apr 2023 17:03:56 GMT, Damon Nguyen <dnguyen at openjdk.org> wrote:

>> Jeremy has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8303950: adding unit test for legacy window behavior
>>   
>>   This test passes in the current JDK. The test criteria don't really reflect a rational expected behavior; they just reflect the current status quo.
>>   
>>   This currently fails in this JDK-8303950 branch (using the new proposed AWTPaintManager), which indicates we've changed behavior.
>>   
>>   In this case it's "window 4" that's failing. We used to get a mostly blue background, and now we're getting a background that's mostly red with a little blue. This isn't necessarily a bad thing; this failure is just documenting a change.
>
> src/java.desktop/share/classes/java/awt/Window.java line 3953:
> 
>> 3951:                 if (gg instanceof Graphics2D) {
>> 3952:                     gg.setColor(getBackground());
>> 3953:                     ((Graphics2D) gg).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC));
> 
> Why was the import for SunHints added if the only edit to this file was adding a space?

Nevermind I saw this wrong when looking through the commit history.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/12993#discussion_r1160887595


More information about the i18n-dev mailing list