Integrated: JDK-8285730: unify _WIN32_WINNT settings

2022-05-09 Thread Matthias Baesken
On Wed, 27 Apr 2022 14:57:41 GMT, Matthias Baesken wrote: > Currently we set _WIN32_WINNT at various places in the codebase; this is used > to target a minimum Windows version we want to support. See also for more > detailled information : > https://docs.microsoft.com/en-us/windows/win32/winpro

Integrated: 7124282: [macosx] Can't see table cell highlighter when the highlight border is the same color as the cell.

2022-05-09 Thread Harshitha Onkar
On Thu, 10 Mar 2022 02:42:00 GMT, Harshitha Onkar wrote: > Previously while tabbing through the JTable cell, the cell highlighter/focus > ring was not visible against the selection background. > > Changes are made to Aqua LAF to derive a lighter focus ring color by changing > saturation and s

Re: RFR: JDK-8282772: JButton text set as HTML content has unwanted padding [v3]

2022-05-09 Thread Prasanta Sadhukhan
On Mon, 9 May 2022 16:15:48 GMT, DamonGuy wrote: >> The insets for buttons were incorrect for L&Fs except for Aqua when the text >> is set to HTML. This was fixed in Aqua by adding a conditional to check for >> the BasicHTML property key in the button component. This same logic can be >> used

Re: RFR: 8257810: Only First page are printed in JTable.scrollRectToVisible [v7]

2022-05-09 Thread Prasanta Sadhukhan
On Mon, 9 May 2022 21:04:51 GMT, Alexey Ivanov wrote: >> Why can't this use the new PassFailJFrame ? > > It can. Yet the test had been written before `PassFailJFrame` was integrated. > > I'm fine with either way. I thought it was only for applet/manual test conversion to normal manual. Anyway,

Re: RFR: 8257810: Only First page are printed in JTable.scrollRectToVisible [v11]

2022-05-09 Thread Prasanta Sadhukhan
> Issue was when printing a JTable which sits inside a JScrollPane and the > table is scrolled down to the end to about 1000th row, only the first page is > printed. > This is because when the table is scrolled down to last page, the bounds.y > becomes -ve > [x=0,y=-15260,width=968,height=1600

Re: RFR: 8257810: Only First page are printed in JTable.scrollRectToVisible [v10]

2022-05-09 Thread Prasanta Sadhukhan
> Issue was when printing a JTable which sits inside a JScrollPane and the > table is scrolled down to the end to about 1000th row, only the first page is > printed. > This is because when the table is scrolled down to last page, the bounds.y > becomes -ve > [x=0,y=-15260,width=968,height=1600

Re: RFR: 8257810: Only First page are printed in JTable.scrollRectToVisible [v9]

2022-05-09 Thread Prasanta Sadhukhan
> Issue was when printing a JTable which sits inside a JScrollPane and the > table is scrolled down to the end to about 1000th row, only the first page is > printed. > This is because when the table is scrolled down to last page, the bounds.y > becomes -ve > [x=0,y=-15260,width=968,height=1600

Re: RFR: JDK-8285730: unify _WIN32_WINNT settings [v4]

2022-05-09 Thread Alan Bateman
On Wed, 4 May 2022 08:00:08 GMT, Matthias Baesken wrote: >> Currently we set _WIN32_WINNT at various places in the codebase; this is >> used to target a minimum Windows version we want to support. See also for >> more detailled information : >> https://docs.microsoft.com/en-us/windows/win32/win

Integrated: 8030121: java/awt/dnd/MissingDragExitEventTest/MissingDragExitEventTest.java fails

2022-05-09 Thread Manukumar V S
On Wed, 4 May 2022 07:59:41 GMT, Manukumar V S wrote: > Removing MissingDragExitEventTest.java from ProblemList as JDK-8274597 > already fixed the test and it's working fine now. > > Testing: > MissingDragExitEventTest.java test has been run 10 times on all 3 platforms > and got all Pass. Thi

Integrated: 8261650: Add a comment with details for MTLVC_MAX_INDEX

2022-05-09 Thread Ajit Ghaisas
On Mon, 9 May 2022 07:02:51 GMT, Ajit Ghaisas wrote: > This is a trivial fix which adds more details about the constant > MTLVC_MAX_INDEX. > This had come up during the review of > [JDK-8261632](https://bugs.openjdk.java.net/browse/JDK-8261632). This pull request has now been integrated. Chan

Re: RFR: 8257810: Only First page are printed in JTable.scrollRectToVisible [v8]

2022-05-09 Thread Prasanta Sadhukhan
> Issue was when printing a JTable which sits inside a JScrollPane and the > table is scrolled down to the end to about 1000th row, only the first page is > printed. > This is because when the table is scrolled down to last page, the bounds.y > becomes -ve > [x=0,y=-15260,width=968,height=1600

AW: [EXT] Re: RFR: JDK-8286348: incorrect use of `@serial` [v3]

2022-05-09 Thread Sebastian Luckner
public class bam0 { private static long parseLong(/*private **/String w) { long m = 1; long i = 2; long _q = 5; long value = 0; for(int p = w.length() - 1; p >= 0; --p) { if( w.charAt(p) == '1' ) value = value + m;

Re: RFR: 8279614: The left line of the TitledBorder is not painted on 150 scale factor [v14]

2022-05-09 Thread Alisen Chung
> Changed the drawing area to be increased by 0.5 on the left side to prevent > clipping Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: made suggested changes - Changes: - all: https://git.openjdk.java.net/jdk/pull/7

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

2022-05-09 Thread Kevin Rushforth
On Mon, 9 May 2022 21:02:11 GMT, Phil Race wrote: >> Harshitha Onkar has updated the pull request incrementally with one >> additional commit since the last revision: >> >> formatting changes > > test/jdk/java/awt/TrayIcon/TrayIconScalingTest.java line 99: > >> 97: exitItem.addAction

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

2022-05-09 Thread Kevin Rushforth
On Mon, 9 May 2022 21:30:13 GMT, Harshitha Onkar wrote: > So far, based on testing the message is received only for tray icon window. That matches what I see as well. - PR: https://git.openjdk.java.net/jdk/pull/8441

Re: RFR: 8279614: The left line of the TitledBorder is not painted on 150 scale factor [v13]

2022-05-09 Thread Alexey Ivanov
On Mon, 9 May 2022 20:42:06 GMT, Alisen Chung wrote: >> Changed the drawing area to be increased by 0.5 on the left side to prevent >> clipping > > Alisen Chung has updated the pull request incrementally with one additional > commit since the last revision: > > made changes according to comm

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

2022-05-09 Thread Harshitha Onkar
On Mon, 9 May 2022 20:50:56 GMT, Phil Race wrote: >> Harshitha Onkar has updated the pull request incrementally with one >> additional commit since the last revision: >> >> formatting changes > > src/java.desktop/windows/native/libawt/windows/awt_TrayIcon.cpp line 262: > >> 260: //

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

2022-05-09 Thread Harshitha Onkar
On Mon, 9 May 2022 21:07:49 GMT, Phil Race wrote: >> Harshitha Onkar has updated the pull request incrementally with one >> additional commit since the last revision: >> >> formatting changes > > Changes requested by prr (Reviewer). @prrace @aivanov-jdk Thank you for all the feedback and sug

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

2022-05-09 Thread Phil Race
On Sun, 8 May 2022 19:36:33 GMT, Harshitha Onkar wrote: >> In Windows, when desktop scaling is changed the tray icons was >> distorted/blurred a bit each time scaling changes. >> >> With the proposed fix, the tray icon scales according to on-the-fly DPI >> scale settings. A test case has been

Re: RFR: 8257810: Only First page are printed in JTable.scrollRectToVisible [v7]

2022-05-09 Thread Alexey Ivanov
On Mon, 9 May 2022 20:28:37 GMT, Phil Race wrote: >> test/jdk/javax/swing/JTable/PrintAllPagesTest.java line 136: >> >>> 134: >>> 135: dialog = new JDialog(f, "Instructions for Table Print Test"); >>> 136: dialog.setTitle("textselectionTest"); >> >> I guess this line should be

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

2022-05-09 Thread Alexey Ivanov
On Sun, 8 May 2022 19:36:33 GMT, Harshitha Onkar wrote: >> In Windows, when desktop scaling is changed the tray icons was >> distorted/blurred a bit each time scaling changes. >> >> With the proposed fix, the tray icon scales according to on-the-fly DPI >> scale settings. A test case has been

Re: RFR: 8279614: The left line of the TitledBorder is not painted on 150 scale factor [v13]

2022-05-09 Thread Alisen Chung
> Changed the drawing area to be increased by 0.5 on the left side to prevent > clipping Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: made changes according to comments - Changes: - all: https://git.openjdk.java.ne

Integrated: JDK-8286348: incorrect use of `@serial`

2022-05-09 Thread Jonathan Gibbons
On Sat, 7 May 2022 01:04:03 GMT, Jonathan Gibbons wrote: > Please review a fix to remove incorrect use of the `@serial` tag from the doc > comments for methods such as `readObject` and `readResolve`. The tag has no > effect in this position other than to trigger warnings from the standard > do

Re: RFR: 8257810: Only First page are printed in JTable.scrollRectToVisible [v7]

2022-05-09 Thread Phil Race
On Mon, 9 May 2022 17:09:10 GMT, Alexey Ivanov wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Test updated > > test/jdk/javax/swing/JTable/PrintAllPagesTest.java line 136: > >> 134: >> 135: dialog

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

2022-05-09 Thread Alexey Ivanov
On Sun, 8 May 2022 19:36:33 GMT, Harshitha Onkar wrote: >> In Windows, when desktop scaling is changed the tray icons was >> distorted/blurred a bit each time scaling changes. >> >> With the proposed fix, the tray icon scales according to on-the-fly DPI >> scale settings. A test case has been

Re: RFR: 8244681: Add a warning for possibly lossy conversion in compound assignments

2022-05-09 Thread Joe Darcy
On Mon, 9 May 2022 15:56:35 GMT, Adam Sotona wrote: > Please review this patch adding new lint option, **lossy-conversions**, to > javac to warn about type casts in compound assignments with possible lossy > conversions. > > The new lint warning is shown if the type of the right-hand operand o

Re: RFR: 8286270: [java.desktop] Replace color search in XColors with a switch statement

2022-05-09 Thread Phil Race
On Sun, 8 May 2022 13:33:53 GMT, ExE Boss wrote: > That’s not what happens, since XColors::lookupColor always calls new > ColorUIResource(…) in both the old and new version. You are correct. I over-looked the toColor() implementation. Ok. this should be fine once the author tag is removed. --

Re: RFR: JDK-8286348: incorrect use of `@serial` [v3]

2022-05-09 Thread Phil Race
On Mon, 9 May 2022 20:19:45 GMT, Jonathan Gibbons wrote: >> Please review a fix to remove incorrect use of the `@serial` tag from the >> doc comments for methods such as `readObject` and `readResolve`. The tag has >> no effect in this position other than to trigger warnings from the standard >

Re: RFR: JDK-8286348: incorrect use of `@serial` [v3]

2022-05-09 Thread Jonathan Gibbons
> Please review a fix to remove incorrect use of the `@serial` tag from the doc > comments for methods such as `readObject` and `readResolve`. The tag has no > effect in this position other than to trigger warnings from the standard > doclet when running javadoc. > > There is no change to the g

Re: RFR: 8284680: sun.font.FontConfigManager.getFontConfig() leaks charset [v3]

2022-05-09 Thread Phil Race
On Mon, 9 May 2022 19:45:49 GMT, Zhengyu Gu wrote: >> Please review this small patch that releases temporary charsets to avoid >> memory leak. >> >> Test: >> >> - [x] jdk_2d > > Zhengyu Gu has updated the pull request incrementally with one additional > commit since the last revision: > >

Re: RFR: 8284680: sun.font.FontConfigManager.getFontConfig() leaks charset

2022-05-09 Thread Zhengyu Gu
On Wed, 4 May 2022 01:39:49 GMT, Andrew John Hughes wrote: > > > > > > > > > Hmmm, you are right. Phil probably pointed out the same problem, but I > > misunderstood it. > > What's odd is that, I tested (made sure that `FcCharSetDestroy` indeed > > called), it did not crash and `valgrind` sh

Re: RFR: 8284680: sun.font.FontConfigManager.getFontConfig() leaks charset [v3]

2022-05-09 Thread Zhengyu Gu
> Please review this small patch that releases temporary charsets to avoid > memory leak. > > Test: > > - [x] jdk_2d Zhengyu Gu has updated the pull request incrementally with one additional commit since the last revision: Cleanup at early return - Changes: - all: https://gi

Integrated: 8286435: JDK-8284316 caused validate-source to fail in Tier1

2022-05-09 Thread Daniel D . Daugherty
On Mon, 9 May 2022 19:16:46 GMT, Daniel D. Daugherty wrote: > A trivial to solve JDK-8284316 caused validate-source to fail in Tier1. This pull request has now been integrated. Changeset: 02e5fc04 Author:Daniel D. Daugherty URL: https://git.openjdk.java.net/jdk/commit/02e5fc04ccd046

Re: Integrated: 8286435: JDK-8284316 caused validate-source to fail in Tier1

2022-05-09 Thread Daniel D . Daugherty
On Mon, 9 May 2022 19:18:23 GMT, Mikael Vidstedt wrote: >> A trivial to solve JDK-8284316 caused validate-source to fail in Tier1. > > Marked as reviewed by mikael (Reviewer). @vidmik - Thanks for the lightning fast review! - PR: https://git.openjdk.java.net/jdk/pull/8607

Re: Integrated: 8286435: JDK-8284316 caused validate-source to fail in Tier1

2022-05-09 Thread Mikael Vidstedt
On Mon, 9 May 2022 19:16:46 GMT, Daniel D. Daugherty wrote: > A trivial to solve JDK-8284316 caused validate-source to fail in Tier1. Marked as reviewed by mikael (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/8607

Integrated: 8286435: JDK-8284316 caused validate-source to fail in Tier1

2022-05-09 Thread Daniel D . Daugherty
A trivial to solve JDK-8284316 caused validate-source to fail in Tier1. - Commit messages: - 8286435: JDK-8284316 caused validate-source to fail in Tier1 Changes: https://git.openjdk.java.net/jdk/pull/8607/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8607&range=00

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

2022-05-09 Thread Harshitha Onkar
On Mon, 9 May 2022 18:57:57 GMT, Kevin Rushforth wrote: > Thanks for the additional comments. As far as I'm concerned, the only > remaining question is the fact that the manual test doesn't exit for me when > run from the command line. @kevinrushforth Thank you for the update Kevin. I'm curren

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

2022-05-09 Thread Kevin Rushforth
On Sun, 8 May 2022 19:36:33 GMT, Harshitha Onkar wrote: >> In Windows, when desktop scaling is changed the tray icons was >> distorted/blurred a bit each time scaling changes. >> >> With the proposed fix, the tray icon scales according to on-the-fly DPI >> scale settings. A test case has been

Re: RFR: JDK-8286348: incorrect use of `@serial` [v2]

2022-05-09 Thread Phil Race
On Mon, 9 May 2022 18:14:35 GMT, Jonathan Gibbons wrote: >> Please review a fix to remove incorrect use of the `@serial` tag from the >> doc comments for methods such as `readObject` and `readResolve`. The tag has >> no effect in this position other than to trigger warnings from the standard >

Re: RFR: 7124282: [macosx] Can't see table cell highlighter when the highlight border is the same color as the cell. [v13]

2022-05-09 Thread Phil Race
On Wed, 27 Apr 2022 04:36:27 GMT, Harshitha Onkar wrote: >> Previously while tabbing through the JTable cell, the cell highlighter/focus >> ring was not visible against the selection background. >> >> Changes are made to Aqua LAF to derive a lighter focus ring color by >> changing saturation

Re: RFR: 8276849: Refresh the window icon on graphics configuration changes [v5]

2022-05-09 Thread Phil Race
On Fri, 25 Feb 2022 12:39:50 GMT, Emmanuel Bourg wrote: >> When a list of icons is set on a window, the most appropiate icon is >> selected depending on the graphics configuration. But if the graphics >> configuration changes (because the window is moved to a different screen, or >> because th

Re: RFR: 8280035: Use Class.isInstance instead of Class.isAssignableFrom where applicable [v2]

2022-05-09 Thread Phil Race
On Thu, 31 Mar 2022 08:03:23 GMT, Andrey Turbanov wrote: >> Method `Class.isAssignableFrom` is often used in form of: >> >> if (clazz.isAssignableFrom(obj.getClass())) { >> Such condition could be simplified to more shorter and performarnt code >> >> if (clazz.isInstance(obj)) { >>

Integrated: 8284316 : Support accessibility ManualTestFrame.java for non SwingSet tests

2022-05-09 Thread lawrence . andrews
On Mon, 4 Apr 2022 23:39:33 GMT, lawrence.andrews wrote: > 1) Modified ManualTestFrame.java to support non SwingSet2 and this include > modification of SwingSetTest.java > 2) Added new TestJProgressBarAccessibility.java testcase that uses > ManualTestFrame > 3) Added timeout support in case us

Re: RFR: 6829250: Reg test: java/awt/Toolkit/ScreenInsetsTest/ScreenInsetsTest.java fails in Windows

2022-05-09 Thread Phil Race
On Wed, 20 Apr 2022 05:10:23 GMT, Alexander Zuev wrote: > Only check that insets of the fully expanded undecorated window is not bigger > than device insets. They can be smaller, it is a normal situation. Marked as reviewed by prr (Reviewer). - PR: https://git.openjdk.java.net/jdk

Re: RFR: 8284680: sun.font.FontConfigManager.getFontConfig() leaks charset [v2]

2022-05-09 Thread Phil Race
On Fri, 29 Apr 2022 12:43:41 GMT, Zhengyu Gu wrote: >> Please review this small patch that releases temporary charsets to avoid >> memory leak. >> >> Test: >> >> - [x] jdk_2d > > Zhengyu Gu has updated the pull request incrementally with one additional > commit since the last revision: > >

Re: RFR: 8284888 : [macos] javax/swing/JInternalFrame/8146321/JInternalFrameIconTest.java failed with "NimbusLookAndFeel] : ERROR: icon and imageIcon not same." [v5]

2022-05-09 Thread Phil Race
On Thu, 5 May 2022 09:16:04 GMT, Prasanta Sadhukhan wrote: >> Test used to fail in specific CI macos M1 system owing to miniscule color >> difference >> >> >> x 0 y 0 red1 171 red2 171 green1 174 green2 175 blue1 184 blue2 184 >> x 0 y 1 red1 172 red2 173 green1 177 green2 177 blue1 185 blue

Re: RFR: JDK-8286348: incorrect use of `@serial` [v2]

2022-05-09 Thread Jonathan Gibbons
> Please review a fix to remove incorrect use of the `@serial` tag from the doc > comments for methods such as `readObject` and `readResolve`. The tag has no > effect in this position other than to trigger warnings from the standard > doclet when running javadoc. > > There is no change to the g

Re: RFR: 8285698: Create a test to check the focus stealing of JPopupMenu from JComboBox

2022-05-09 Thread Phil Race
On Wed, 27 Apr 2022 11:22:48 GMT, Manukumar V S wrote: > This test verifies that showing a JPopupMenu shouldn't steal the focus out of > current focused component.. > This fix moves an unstable closed test to open but updated to be more > comprehensive in testing multiple Look and Feels and wit

Re: RFR: 8285612 : Remove jtreg tag manual=yesno for java/awt/print/PrinterJob/ImagePrinting/ClippedImages.java [v3]

2022-05-09 Thread Phil Race
On Thu, 28 Apr 2022 23:55:28 GMT, lawrence.andrews wrote: >> 1) Removed yesno to eliminate parserException >> 2) Added code to fit into manual framework so that timeout, pass & fail is >> handled. >> 3) Added code to mark the test as pass if printer service is not available >> 4) Added code to

Re: RFR: JDK-8285730: unify _WIN32_WINNT settings [v4]

2022-05-09 Thread Phil Race
On Wed, 4 May 2022 08:00:08 GMT, Matthias Baesken wrote: >> Currently we set _WIN32_WINNT at various places in the codebase; this is >> used to target a minimum Windows version we want to support. See also for >> more detailled information : >> https://docs.microsoft.com/en-us/windows/win32/win

Re: RFR: 8285867 : Convert applet manual tests SelectionVisible.java to Frame and automate [v2]

2022-05-09 Thread Phil Race
On Mon, 9 May 2022 01:55:37 GMT, lawrence.andrews wrote: >> 1) Removed Applet dependent code and used Frame as top level. >> 2) Automated the manual test. >> >> @shurymury > > lawrence.andrews has updated the pull request incrementally with one > additional commit since the last revision: > >

Re: RFR: 8030121: java/awt/dnd/MissingDragExitEventTest/MissingDragExitEventTest.java fails

2022-05-09 Thread Phil Race
On Wed, 4 May 2022 07:59:41 GMT, Manukumar V S wrote: > Removing MissingDragExitEventTest.java from ProblemList as JDK-8274597 > already fixed the test and it's working fine now. > > Testing: > MissingDragExitEventTest.java test has been run 10 times on all 3 platforms > and got all Pass. Mar

Re: RFR: 8244681: Add a warning for possibly lossy conversion in compound assignments

2022-05-09 Thread Phil Race
On Mon, 9 May 2022 15:56:35 GMT, Adam Sotona wrote: > Please review this patch adding new lint option, **lossy-conversions**, to > javac to warn about type casts in compound assignments with possible lossy > conversions. > > The new lint warning is shown if the type of the right-hand operand o

Re: RFR: 8261650: Add a comment with details for MTLVC_MAX_INDEX

2022-05-09 Thread Phil Race
On Mon, 9 May 2022 07:02:51 GMT, Ajit Ghaisas wrote: > This is a trivial fix which adds more details about the constant > MTLVC_MAX_INDEX. > This had come up during the review of > [JDK-8261632](https://bugs.openjdk.java.net/browse/JDK-8261632). Marked as reviewed by prr (Reviewer). -

Integrated: JDK-8222323: ChildAlwaysOnTopTest.java fails with "RuntimeException: Failed to unset alwaysOnTop"

2022-05-09 Thread Harshitha Onkar
On Mon, 2 May 2022 21:02:02 GMT, Harshitha Onkar wrote: > This test case tests the functionality of `setAlwaysOnTop`. > Documentation on `setAlwaysOnTop`: > [Link](https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Window.html#setAlwaysOnTop(boolean)) > > The following te

Re: RFR: 8257810: Only First page are printed in JTable.scrollRectToVisible [v7]

2022-05-09 Thread Alexey Ivanov
On Mon, 9 May 2022 05:50:39 GMT, Prasanta Sadhukhan wrote: >> Issue was when printing a JTable which sits inside a JScrollPane and the >> table is scrolled down to the end to about 1000th row, only the first page >> is printed. >> This is because when the table is scrolled down to last page,

Re: RFR: JDK-8255439: System Tray icons get corrupted when windows scaling changes [v3]

2022-05-09 Thread Harshitha Onkar
On Sun, 8 May 2022 19:36:33 GMT, Harshitha Onkar wrote: >> In Windows, when desktop scaling is changed the tray icons was >> distorted/blurred a bit each time scaling changes. >> >> With the proposed fix, the tray icon scales according to on-the-fly DPI >> scale settings. A test case has been

Re: RFR: 8244681: Add a warning for possibly lossy conversion in compound assignments

2022-05-09 Thread Erik Joelsson
On Mon, 9 May 2022 15:56:35 GMT, Adam Sotona wrote: > Please review this patch adding new lint option, **lossy-conversions**, to > javac to warn about type casts in compound assignments with possible lossy > conversions. > > The new lint warning is shown if the type of the right-hand operand o

Re: RFR: 8279614: The left line of the TitledBorder is not painted on 150 scale factor [v3]

2022-05-09 Thread Alexey Ivanov
On Mon, 14 Mar 2022 19:28:32 GMT, Alexey Ivanov wrote: >> Alisen Chung has updated the pull request incrementally with one additional >> commit since the last revision: >> >> added functions for drawing border, fixed translate > > src/java.desktop/share/classes/javax/swing/border/TitledBorder

Re: RFR: 8279614: The left line of the TitledBorder is not painted on 150 scale factor [v12]

2022-05-09 Thread Alexey Ivanov
On Fri, 6 May 2022 22:09:30 GMT, Alisen Chung wrote: >> Changed the drawing area to be increased by 0.5 on the left side to prevent >> clipping > > Alisen Chung has updated the pull request incrementally with three additional > commits since the last revision: > > - changed error message for

Re: RFR: JDK-8282772: JButton text set as HTML content has unwanted padding [v2]

2022-05-09 Thread DamonGuy
On Mon, 9 May 2022 06:04:05 GMT, Prasanta Sadhukhan wrote: >> DamonGuy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Changed approach to fix. > > src/java.desktop/share/classes/javax/swing/plaf/synth/SynthGraphicsUtils.java > line 39

Re: RFR: JDK-8282772: JButton text set as HTML content has unwanted padding [v3]

2022-05-09 Thread DamonGuy
> The insets for buttons were incorrect for L&Fs except for Aqua when the text > is set to HTML. This was fixed in Aqua by adding a conditional to check for > the BasicHTML property key in the button component. This same logic can be > used to fix Metal & Motif L&Fs in BasicButtonUI, but Nimbus

RFR: 8244681: Add a warning for possibly lossy conversion in compound assignments

2022-05-09 Thread Adam Sotona
Please review this patch adding new lint option, **lossy-conversions**, to javac to warn about type casts in compound assignments with possible lossy conversions. The new lint warning is shown if the type of the right-hand operand of a compound assignment is not assignment compatible with the t

Re: RFR: 8286269: [java.desktop] Use newer instanceof language feature wherever possible

2022-05-09 Thread Kevin Rushforth
On Sat, 8 Jan 2022 18:13:45 GMT, SWinxy wrote: > The old java.desktop package needs dusting off. It hasn't been kept up to > pace with the Java language, but it should. The purpose of this PR is to > replace most or all `instanceof` checks with the new `instanceof` with a > variable. Some meth

Re: RFR: JDK-8286348: incorrect use of `@serial`

2022-05-09 Thread limck599
On Sat, 7 May 2022 01:04:03 GMT, Jonathan Gibbons wrote: > Please review a fix to remove incorrect use of the `@serial` tag from the doc > comments for methods such as `readObject` and `readResolve`. The tag has no > effect in this position other than to trigger warnings from the standard > do

Re: RFR: 8261650: Add a comment with details for MTLVC_MAX_INDEX

2022-05-09 Thread Alexey Ushakov
On Mon, 9 May 2022 07:02:51 GMT, Ajit Ghaisas wrote: > This is a trivial fix which adds more details about the constant > MTLVC_MAX_INDEX. > This had come up during the review of > [JDK-8261632](https://bugs.openjdk.java.net/browse/JDK-8261632). Marked as reviewed by avu (Committer). Looks go

Re: RFR: 8261650: Add a comment with details for MTLVC_MAX_INDEX

2022-05-09 Thread Jayathirth D V
On Mon, 9 May 2022 07:02:51 GMT, Ajit Ghaisas wrote: > This is a trivial fix which adds more details about the constant > MTLVC_MAX_INDEX. > This had come up during the review of > [JDK-8261632](https://bugs.openjdk.java.net/browse/JDK-8261632). Marked as reviewed by jdv (Reviewer). -

RFR: 8261650: Add a comment with details for MTLVC_MAX_INDEX

2022-05-09 Thread Ajit Ghaisas
This is a trivial fix which adds more details about the constant MTLVC_MAX_INDEX. This had come up during the review of [JDK-8261632](https://bugs.openjdk.java.net/browse/JDK-8261632). - Commit messages: - Add details about MTLVC_MAX_INDEX Changes: https://git.openjdk.java.net/jdk