[OpenJDK 2D-Dev] RFR: 8240247: No longer need to wrap files with contentContainer

2021-01-22 Thread Alexey Ivanov
[JDK-8231144](https://bugs.openjdk.java.net/browse/JDK-8231144) wrapped the contents of plain HTML documents into `` to apply the styles and add the margins around the content for a consistent look. This is no longer necessary after

Re: [OpenJDK 2D-Dev] RFR: 8259522: Apply java.io.Serial annotations in java.desktop [v2]

2021-01-12 Thread Alexey Ivanov
On Tue, 12 Jan 2021 20:36:21 GMT, Sergey Bylokhov wrote: >> src/java.desktop/share/classes/com/sun/media/sound/InvalidDataException.java >> line 42: >> >>> 40: */ >>> 41: @Serial >>> 42: private static final long serialVersionUID = 1L; >> >> This is the standard wording, yet

Re: [OpenJDK 2D-Dev] RFR: 8259522: Apply java.io.Serial annotations in java.desktop

2021-01-12 Thread Alexey Ivanov
On Mon, 11 Jan 2021 06:21:52 GMT, Sergey Bylokhov wrote: > Please review the application of @java.io.Serial annotation (JDK-8202385) to > types in the desktop module to enable stricter compile-time checking of > serialization-related declarations. > > This annotation can be applied to these

Re: [OpenJDK 2D-Dev] RFR: 8210253: Clipped UI rendering with X11 pipeline and HiDPI

2020-11-30 Thread Alexey Ivanov
On Wed, 18 Nov 2020 09:11:11 GMT, Sergey Bylokhov wrote: > The fix for https://bugs.openjdk.java.net/browse/JDK-8137571 where HiDPI > support on Linux was implemented missed the change in the X11 pipeline, only > XRender pipeline was updated. The same logic should be implemented in >

Re: [OpenJDK 2D-Dev] RFR: 8211999: Window positioning bugs due to overlapping GraphicsDevice bounds (Windows/HiDPI) [v4]

2020-11-10 Thread Alexey Ivanov
On Tue, 10 Nov 2020 18:40:45 GMT, Sergey Bylokhov wrote: >> src/java.desktop/share/classes/sun/java2d/SunGraphicsEnvironment.java line >> 357: >> >>> 355: * @param config the graphics configuration which bounds are >>> requested >>> 356: * @return the bounds of the area covered by

Re: [OpenJDK 2D-Dev] RFR: 8211999: Window positioning bugs due to overlapping GraphicsDevice bounds (Windows/HiDPI) [v4]

2020-11-10 Thread Alexey Ivanov
On Wed, 28 Oct 2020 23:46:55 GMT, Sergey Bylokhov wrote: >> Hello. >> Please review the fix for jdk. >> >> Old review request: >> https://mail.openjdk.java.net/pipermail/awt-dev/2020-July/015991.html >> >> >> (Note: the fix use API available since Windows 8.1: WM_DPICHANGED, but it >> should

Re: [OpenJDK 2D-Dev] RFR: 8211958: Broken links in java.desktop files

2020-11-02 Thread Alexey Ivanov
On Mon, 2 Nov 2020 09:04:39 GMT, Sergey Bylokhov wrote: > Most of the broken links were fixed already by the JDK-8225368 and JDK-8214817 > This change fix just a few. > > Also two cleanups are applied: > - The `../../java/awt/doc-files/` in some cases simplified to `doc-files/` > - The html

Re: [OpenJDK 2D-Dev] RFR: 8211999: Window positioning bugs due to overlapping GraphicsDevice bounds (Windows/HiDPI) [v2]

2020-10-28 Thread Alexey Ivanov
On Sun, 4 Oct 2020 06:22:45 GMT, Sergey Bylokhov wrote: >> Hello. >> Please review the fix for jdk. >> >> Old review request: >> https://mail.openjdk.java.net/pipermail/awt-dev/2020-July/015991.html >> >> >> (Note: the fix use API available since Windows 8.1: WM_DPICHANGED, but it >> should

Re: [OpenJDK 2D-Dev] RFR: 8182043: Access to Windows Large Icons

2020-10-08 Thread Alexey Ivanov
On Mon, 28 Sep 2020 15:20:33 GMT, Alexander Zuev wrote: > Moving review from Mercurial. See > https://mail.openjdk.java.net/pipermail/awt-dev/2020-August/016078.html for > previous > iteration. src/java.desktop/windows/native/libawt/windows/ShellFolder2.cpp line 986: > 984:

Re: [OpenJDK 2D-Dev] RFR: 8182043: Access to Windows Large Icons

2020-10-06 Thread Alexey Ivanov
On Fri, 2 Oct 2020 23:29:10 GMT, Sergey Bylokhov wrote: >> @aivanov-jdk Can you review this? > > I still suggest to try the approach recommended here: > https://mail.openjdk.java.net/pipermail/awt-dev/2020-August/016074.html > > On 29.05.2020 14:35, Alexey Ivanov wrote:

Re: [OpenJDK 2D-Dev] RFR: 8248352: [TEST_BUG] Test test/jdk/java/awt/font/TextLayout/ArabicDiacriticTest.java can leave frame open

2020-09-22 Thread Alexey Ivanov
On Fri, 18 Sep 2020 17:05:42 GMT, skodanda wrote: > Hello All, > > Could you please review a TEST_BUG fix for the JDK 16? > > Bug: https://bugs.openjdk.java.net/browse/JDK-8248352 > > Problem description: The test > test/jdk/java/awt/font/TextLayout/ArabicDiacriticTest.java can potentially

Re: [OpenJDK 2D-Dev] RFR : 8200281: Add missing @Override annotations in ImageIO plugins

2020-08-19 Thread Alexey Ivanov
Looks good. Regards, Alexey On 18/08/2020 15:23, Kumar Abhishek wrote: Hi Alexey, Please find the updated Webrev link here:- http://cr.openjdk.java.net/~arapte/Abhishek/8200281/webrev.05 I have updated the missed annotation. Thanks, Abhishek -Original Message- From: Alexey Ivanov

Re: [OpenJDK 2D-Dev] RFR : 8200281: Add missing @Override annotations in ImageIO plugins

2020-08-17 Thread Alexey Ivanov
/webrev.04/ Thanks, Abhishek -Original Message- From: Alexey Ivanov Sent: Thursday, August 6, 2020 3:20 AM To: Kumar Abhishek Cc: Dmitry Markov ; Philip Race ; 2d-dev <2d-dev@openjdk.java.net> Subject: Re: [OpenJDK 2D-Dev] RFR : 8200281: Add missing @Override annotations in I

Re: [OpenJDK 2D-Dev] RFR : 8200281: Add missing @Override annotations in ImageIO plugins

2020-08-05 Thread Alexey Ivanov
There are also several unused imports in WBMPImageWriter.java which can be removed. On 05/08/2020 22:49, Alexey Ivanov wrote: *WBMPImageWriter.java* Missing @Override annotation: 137 public boolean canWriteRasters() { -- Regards, Alexey

Re: [OpenJDK 2D-Dev] RFR : 8200281: Add missing @Override annotations in ImageIO plugins

2020-08-05 Thread Alexey Ivanov
wrote: Hi Dmitry, I have updated the year in the copyright section for the modified file. Please find the updated Webrev:- http://cr.openjdk.java.net/~jdv/8200281/webrev.03/ Thanks, Abhishek -Original Message- From: Alexey Ivanov Sent: Saturday, July 25, 2020 2:38 AM To: Kumar Abhishek

Re: [OpenJDK 2D-Dev] RFR : 8200281: Add missing @Override annotations in ImageIO plugins

2020-07-24 Thread Alexey Ivanov
Hi Abhishek, *JPEGImageWriter.java* 240 public IIOMetadata convertStreamMetadata(IIOMetadata inData, 255 public IIOMetadata 256 convertImageMetadata(IIOMetadata inData, 1751 public synchronized void dispose() { These methods are missed: no @Override annotation. In the

Re: [OpenJDK 2D-Dev] RFR: 8241829 Cleanup the code for PrinterJob on windows

2020-04-07 Thread Alexey Ivanov
Hi Sergey, Looks good to me. Yet I don't quite understand the test. Does the test confirm, no print services are returned if a SecurityManager is installed? Regards, Alexey On 05/04/2020 02:40, Sergey Bylokhov wrote: Hello, Here is an updated patch:

Re: [OpenJDK 2D-Dev] RFR: 8241829 Cleanup the code for PrinterJob on windows

2020-04-02 Thread Alexey Ivanov
On 02/04/2020 19:41, Sergey Bylokhov wrote: On 4/2/20 10:51 am, Alexey Ivanov wrote: What about this? // Open the local printer server BOOL ret = OpenPrinter(NULL, , NULL); I found it useful, otherwise, I would be the first who deleted it. Okay. Let the local variable live. Concise

Re: [OpenJDK 2D-Dev] RFR: 8241829 Cleanup the code for PrinterJob on windows

2020-04-02 Thread Alexey Ivanov
On 02/04/2020 03:56, Sergey Bylokhov wrote: On 4/1/20 7:38 am, Alexey Ivanov wrote: I agree, I'd remove printerName local variable. You can modify the original comment:   // If pPrinterName (the first parameter) is NULL, "it indicates the local printer server" - MSDN. But

Re: [OpenJDK 2D-Dev] [15] Review Request: 8237746 Fixing compiler warnings in src/demo/share/jfc

2020-03-11 Thread Alexey Ivanov
Thank you to Marc for updating webrev and to Sergey for uploading it. The changes look fine to me as I already stated. I just wanted to share more comments: On 22/02/2020 09:50, Sergey Bylokhov wrote: Thank you, an updated version is upload: http://cr.openjdk.java.net/~serb/8237746/webrev.01

Re: [OpenJDK 2D-Dev] [15] Review Request: 8237746 Fixing compiler warnings in src/demo/share/jfc

2020-03-11 Thread Alexey Ivanov
Shall the copyright year be updated in all the modified files? Please let me know what would be the correct process. Cheers, -marc On 17. Feb 2020, at 15:40, Alexey Ivanov wrote: Thank you, Marc, for your contribution. And thank you to Sergey for creating the review. *Font2DTest.java* 674

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8235147: Release HDC from passiveDCList sooner

2020-02-25 Thread Alexey Ivanov
I have added the same for future reference. Thanks, Jay On 24-Feb-2020, at 7:15 PM, Alexey Ivanov wrote: I'm still waiting for a second reviewer. Anyone? Thank you in advance! On 17/02/2020 12:56, Alexey Ivanov wrote: Thank you, Sergey, for your review! Any other volunteers? On 06/02

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8235147: Release HDC from passiveDCList sooner

2020-02-24 Thread Alexey Ivanov
I'm still waiting for a second reviewer. Anyone? Thank you in advance! On 17/02/2020 12:56, Alexey Ivanov wrote: Thank you, Sergey, for your review! Any other volunteers? On 06/02/2020 23:10, Sergey Bylokhov wrote: Looks fine. On 2/6/20 1:39 pm, Alexey Ivanov wrote: Hello once again

Re: [OpenJDK 2D-Dev] [15] Review Request: 8237746 Fixing compiler warnings in src/demo/share/jfc

2020-02-17 Thread Alexey Ivanov
Thank you, Marc, for your contribution. And thank you to Sergey for creating the review. *Font2DTest.java* 674 if ( selectedText == fp.USER_TEXT ) 675   userTextDialog.setVisible(true); 676 else 677   userTextDialog.setVisible(false); I'd put the braces around

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8235147: Release HDC from passiveDCList sooner

2020-02-17 Thread Alexey Ivanov
Thank you, Sergey, for your review! Any other volunteers? On 06/02/2020 23:10, Sergey Bylokhov wrote: Looks fine. On 2/6/20 1:39 pm, Alexey Ivanov wrote: Hello once again, After trying a few things suggested by Sergey, I found serious issues in the new approaches although the code looked

Re: [OpenJDK 2D-Dev] CFV: New JDK Committer: Dmitry Batrak

2020-02-17 Thread Alexey Ivanov
Vote: yes On 17/02/2020 08:49, Anton Tarasov wrote: I hereby nominate Dmitry Batrak to JDK Committer. Dmitry Batrak has contributed 8 significant fixes to Java 2D subsystem, related to font rendering [3]. -- Regards, Alexey

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8235147: Release HDC from passiveDCList sooner

2020-02-06 Thread Alexey Ivanov
in passiveDCList when another DC is requested. With the fix, when running ManyFramesTest.java test case, the number of entries in passiveDCList does not grow, the list contains at most 1 entry. On 12/12/2019 20:46, Alexey Ivanov wrote: Hi Sergey, It does not work good. I found serious issues

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8235147: Release HDC from passiveDCList sooner

2019-12-12 Thread Alexey Ivanov
Hi Sergey, On 09/12/2019 21:26, Alexey Ivanov wrote: Hi Sergey On 04/12/2019 22:17, Sergey Bylokhov wrote: On 12/4/19 6:06 am, Alexey Ivanov wrote: Yes, we still need passiveDCList. A DC can be moved to the passive list by DisposeThreadGraphicsInfo function in GDIWindowSurfaceData.cpp

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8235147: Release HDC from passiveDCList sooner

2019-12-09 Thread Alexey Ivanov
Hi Sergey On 04/12/2019 22:17, Sergey Bylokhov wrote: On 12/4/19 6:06 am, Alexey Ivanov wrote: Yes, we still need passiveDCList. A DC can be moved to the passive list by DisposeThreadGraphicsInfo function in GDIWindowSurfaceData.cpp. This is called not on the toolkit thread, so we have

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8235147: Release HDC from passiveDCList sooner

2019-12-04 Thread Alexey Ivanov
On 04/12/2019 02:29, Sergey Bylokhov wrote: On 12/2/19 2:45 am, Alexey Ivanov wrote: We can have two different functions though: ReleaseActiveDCs(HWND); ReleasePassiveDCs();> Then we can drop the list parameter. What do you think? Yes, it is worth to try. BTW it would be good to know do

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8235245: tiff_metadata.html has invalid HTML structure: misplaced element

2019-12-03 Thread Alexey Ivanov
Hi Sergey, On 03/12/2019 18:23, Sergey Bylokhov wrote: Hi, Alexey. The fix looks fine, how did you find this issue? Axe and w3c online validator are silent about it. I used W3C validator, it reports the following errors [4]: Error: Row 2 of a row group established by a |thead| element has

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8235245: tiff_metadata.html has invalid HTML structure: misplaced element

2019-12-03 Thread Alexey Ivanov
, Brian [1] https://docs.oracle.com/en/java/javase/13/docs/api/java.desktop/javax/imageio/metadata/doc-files/tiff_metadata.html#Compression On Dec 3, 2019, at 3:34 AM, Alexey Ivanov <mailto:alexey.iva...@oracle.com>> wrote: Please review the following fix: JBS:https://bugs.openjdk

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8234398: Replace ID2D1Factory::GetDesktopDpi with GetDeviceCaps

2019-12-03 Thread Alexey Ivanov
On 28/11/2019 18:13, Alexey Ivanov wrote: Hello, Please review the following fix which removes the use of ID2D1Factory::GetDesktopDpi API which is deprecated in VS2019. JBS: https://bugs.openjdk.java.net/browse/JDK-8234398 Webrev: http://cr.openjdk.java.net/~aivanov/8234398/webrev.00/ I

[OpenJDK 2D-Dev] [14] RFR JDK-8235245: tiff_metadata.html has invalid HTML structure: misplaced element

2019-12-03 Thread Alexey Ivanov
Hello, Please review the following fix: JBS: https://bugs.openjdk.java.net/browse/JDK-8235245 Webrev: http://cr.openjdk.java.net/~aivanov/8235245/webrev.00/ The file tiff_metadata.html has a misplaced element which breaks the structure. The fix corrects the problem and makes the HTML

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8235147: Release HDC from passiveDCList sooner

2019-12-02 Thread Alexey Ivanov
moveDC(hDC, hWnd)) != NULL) { We can have two different functions though: ReleaseActiveDCs(HWND); ReleasePassiveDCs(); Then we can drop the list parameter. What do you think? On 12/1/19 7:04 am, Alexey Ivanov wrote: Hello, Please review the following fix for JDK: JBS: https://bugs.openjd

[OpenJDK 2D-Dev] [14] RFR JDK-8234398: Replace ID2D1Factory::GetDesktopDpi with GetDeviceCaps

2019-11-28 Thread Alexey Ivanov
Hello, Please review the following fix which removes the use of ID2D1Factory::GetDesktopDpi API which is deprecated in VS2019. JBS: https://bugs.openjdk.java.net/browse/JDK-8234398 Webrev: http://cr.openjdk.java.net/~aivanov/8234398/webrev.00/ I have tested the new code on Windows 7 and 8.0,

Re: [OpenJDK 2D-Dev] PING: RFR (trivial): 8233707: systemScale.cpp could not compile with VS2019

2019-11-19 Thread Alexey Ivanov
:42, Alexey Ivanov wrote: Hi Yasumasa, I think this belongs to 2d-dev list. On 07/11/2019 00:16, Yasumasa Suenaga wrote: Hi all, Please review this change:   JBS: https://bugs.openjdk.java.net/browse/JDK-8233707   webrev: http://cr.openjdk.java.net/~ysuenaga/JDK-8233707/webrev.00/ I tried

Re: [OpenJDK 2D-Dev] RFR (trivial): 8233707: systemScale.cpp could not compile with VS2019

2019-11-12 Thread Alexey Ivanov
Hi Yasumasa, I think this belongs to 2d-dev list. On 07/11/2019 00:16, Yasumasa Suenaga wrote: Hi all, Please review this change:   JBS: https://bugs.openjdk.java.net/browse/JDK-8233707   webrev: http://cr.openjdk.java.net/~ysuenaga/JDK-8233707/webrev.00/ I tried to build OpenJDK with VS

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8232634: [TEST_BUG] ICMColorDataTest runs for a long time

2019-10-25 Thread Alexey Ivanov
On 24/10/2019 08:48, Sergey Bylokhov wrote: On 10/23/19 3:32 pm, Alexey Ivanov wrote: I'm confused now. Why would we exclude 32-bit Windows? It is the only platform where the original bug could be reproduced and where OOME or NPE is thrown in the test. With 64-bit platforms, it's nearly

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8232634: [TEST_BUG] ICMColorDataTest runs for a long time

2019-10-23 Thread Alexey Ivanov
On 23/10/2019 17:54, Sergey Bylokhov wrote: On 10/22/19 6:09 am, Alexey Ivanov wrote: Then, isn't it is a product bug on windows rather than a test issue? That it runs for a long time? It's hard to say… The test has always been slower on Windows. Then probably we can exclude windows 32bit

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8232634: [TEST_BUG] ICMColorDataTest runs for a long time

2019-10-22 Thread Alexey Ivanov
On 22/10/2019 00:15, Sergey Bylokhov wrote: On 10/21/19 3:48 pm, Alexey Ivanov wrote: Yes, I noticed that the test is pretty fast both on Linux and Mac but it's not as fast on Windows. In fact, I reproduced the bug only on Windows and only on 32 bit. The bug was in shared code, that's why

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8232634: [TEST_BUG] ICMColorDataTest runs for a long time

2019-10-21 Thread Alexey Ivanov
Hi Sergey, On 21/10/2019 20:47, Sergey Bylokhov wrote: Hi, Alexey. On 10/21/19 12:11 pm, Alexey Ivanov wrote: I was running this test in different configurations and found that the expected exception is thrown at 20-25 thousand iterations (32-bit). It usually takes 3-4 minutes

[OpenJDK 2D-Dev] [14] RFR JDK-8232634: [TEST_BUG] ICMColorDataTest runs for a long time

2019-10-21 Thread Alexey Ivanov
Hello, Please review the fix for the test: bug: https://bugs.openjdk.java.net/browse/JDK-8232634 webrev: http://cr.openjdk.java.net/~aivanov/8232634/webrev.00/ The test exhausts native memory so that a memory allocation fails. This situation is quite easy to achieve with 32 bit processes but

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8223558: Java does not render Myanmar script correctly

2019-10-14 Thread Alexey Ivanov
. -phil. On 10/7/19 5:07 AM, Alexey Ivanov wrote: Hi Phil, Thank you for your review. I have updated the summary of the bug to be more specific: “Java does not render Myanmar script correctly”. This fix addresses only the rendering of Myanmar characters. Adding Myanmar script and related languages

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8223558: Java does not render Myanmar script correctly

2019-10-07 Thread Alexey Ivanov
doing here on the display side. -phil. On 10/3/19 10:28 AM, Alexey Ivanov wrote: Hi Phil, Thank you for your review. Please see my answers inline: On 03/10/2019 17:31, Philip Race wrote: 1) This is an RFE, not a bug. I have updated the CR type to RFE. 2) Does this font exist on Windows 7 ? N

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8223558: Java apps do not support Myanmar fonts

2019-10-03 Thread Alexey Ivanov
. It can be brought to 11 updates. Regards, Alexey -phil. On 10/3/19, 8:57 AM, Alexey Ivanov wrote: Any volunteers to review? On 25/09/2019 20:38, Alexey Ivanov wrote: Hello, Please review the fix for JDK 14: bug: https://bugs.openjdk.java.net/browse/JDK-8223558 webrev: http

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8223558: Java apps do not support Myanmar fonts

2019-10-03 Thread Alexey Ivanov
Any volunteers to review? On 25/09/2019 20:38, Alexey Ivanov wrote: Hello, Please review the fix for JDK 14: bug: https://bugs.openjdk.java.net/browse/JDK-8223558 webrev: http://cr.openjdk.java.net/~aivanov/8223558/webrev.00/ Problem description: Java renders Myanmar script incorrectly. Some

[OpenJDK 2D-Dev] [14] RFR JDK-8223558: Java apps do not support Myanmar fonts

2019-09-25 Thread Alexey Ivanov
Hello, Please review the fix for JDK 14: bug: https://bugs.openjdk.java.net/browse/JDK-8223558 webrev: http://cr.openjdk.java.net/~aivanov/8223558/webrev.00/ Problem description: Java renders Myanmar script incorrectly. Some glyphs are not combined, which makes text unreadable. For example,

[OpenJDK 2D-Dev] [14] RFR JDK-8231144: Wrap contents of plain HTML files into contentContainer

2019-09-24 Thread Alexey Ivanov
Hello, Please review the following simple fix for JDK 14: bug: https://bugs.openjdk.java.net/browse/JDK-8231144 webrev: http://cr.openjdk.java.net/~aivanov/8231144/webrev.00/ docs: http://cr.openjdk.java.net/~aivanov/8231144/docs.00/api/java.desktop/module-summary.html Plain HTML

Re: [OpenJDK 2D-Dev] [13] Review Request: 8225372 accessibility errors in tables in java.desktop files

2019-09-18 Thread Alexey Ivanov
On 16/09/2019 20:09, Alexey Ivanov wrote: Hi Sergey, This version looks good to me. On 09/09/2019 23:14, Sergey Bylokhov wrote: Hi, Alexey.  - Modality.html: The was dropped from everywhere, it does not seems to be useful I think was used to make a term / concept stand out from its

Re: [OpenJDK 2D-Dev] [13] Review Request: 8225372 accessibility errors in tables in java.desktop files

2019-09-16 Thread Alexey Ivanov
ore. Let's leave it that way for now.  - Modality.html: An example block was reworked as suggested: http://cr.openjdk.java.net/~serb/8225372/docs.03/api/java.desktop/java/awt/doc-files/Modality.html On 9/3/19 10:55 am, Alexey Ivanov wrote: It looks fine to me. And it has more semantic markup

Re: [OpenJDK 2D-Dev] [13] Review Request: 8225372 accessibility errors in tables in java.desktop files

2019-09-03 Thread Alexey Ivanov
/~serb/8225372/docs.01/api/java.desktop/module-summary.html See comments inline: On 14/06/2019 09:19, Alexey Ivanov wrote: *GridBagLayout.java* Does it make sense to use nested lists for valid values> It could make the presentation clearer rather than a paragraph followed by a list. We

Re: [OpenJDK 2D-Dev] RFR: 8229800 : WindowsServerCore 1809 does not provide d2d1.dll library required by awt.dll

2019-08-28 Thread Alexey Ivanov
Looks good to me too. Regards, Alexey On 28/08/2019 03:56, Sergey Bylokhov wrote: +1 On 8/27/19 10:34 am, Jayathirth Rao wrote: Hi Phil, I went through the changes and I see that we are doing similar dynamic loading of d2d1.dll as we are doing for shcore.dll and loading code looks good.

Re: [OpenJDK 2D-Dev] [13] RFR 8222108: Reduce minRefreshTime for updating remote printer list on Windows

2019-08-16 Thread Alexey Ivanov
://docs.microsoft.com/en-us/windows/win32/printdocs/enumprinters [2] https://docs.microsoft.com/en-us/windows/win32/printdocs/printer-info-4 On 03/07/2019 19:46, Alexey Ivanov wrote: Hi Phil, Thank you for your review! That's a valid point! Please see the updated webrev: http://cr.openjdk.java.net

Re: [OpenJDK 2D-Dev] [13] RFR 8222108: Reduce minRefreshTime for updating remote printer list on Windows

2019-07-03 Thread Alexey Ivanov
t.sort(ComparableTimSort.java:188)     at java.util.Arrays.sort(Arrays.java:1246)     at Sort.main(Sort.java:4) -phil. On 7/2/19, 5:18 AM, Alexey Ivanov wrote: Are there any other comments? Other volunteers for reviewing? Thanks in advance. On 25/06/2019 20:17, Alexey Ivanov wrote: Please see the updated w

Re: [OpenJDK 2D-Dev] [13] RFR 8222108: Reduce minRefreshTime for updating remote printer list on Windows

2019-07-02 Thread Alexey Ivanov
Are there any other comments? Other volunteers for reviewing? Thanks in advance. On 25/06/2019 20:17, Alexey Ivanov wrote: Please see the updated webrev: http://cr.openjdk.java.net/~aivanov/8222108/webrev.01/ On 25/06/2019 00:01, Sergey Bylokhov wrote: On 24/06/2019 14:50, Alexey Ivanov

Re: [OpenJDK 2D-Dev] [13] RFR 8222108: Reduce minRefreshTime for updating remote printer list on Windows

2019-06-25 Thread Alexey Ivanov
Please see the updated webrev: http://cr.openjdk.java.net/~aivanov/8222108/webrev.01/ On 25/06/2019 00:01, Sergey Bylokhov wrote: On 24/06/2019 14:50, Alexey Ivanov wrote: I guess that the change in doCompare() passed a review because it was assumed that the code inside will take care

Re: [OpenJDK 2D-Dev] [13] RFR 8222108: Reduce minRefreshTime for updating remote printer list on Windows

2019-06-24 Thread Alexey Ivanov
he test, the list of printers always has the same order. We do not sort the array returned by getAllPrinterNames() in PrintServiceLookupProvider.refreshServices(), so I assume Windows returns the installed printers in the same order. Therefore I think sorting the array is not necessary in t

[OpenJDK 2D-Dev] [13] RFR 8222108: Reduce minRefreshTime for updating remote printer list on Windows

2019-06-14 Thread Alexey Ivanov
Hi, Please review the following fix for JDK 13: bug: https://bugs.openjdk.java.net/browse/JDK-8222108 webrev: http://cr.openjdk.java.net/~aivanov/8222108/webrev.00/ The main goal of this bug was to reduce the minimum refresh time for updating remote printer list to facilitate testing. While

Re: [OpenJDK 2D-Dev] [13] Review Request: 8225372 accessibility errors in tables in java.desktop files

2019-06-14 Thread Alexey Ivanov
Hi Sergey, *GridBagLayout.java* Does it make sense to use nested lists for valid values? It could make the presentation clearer rather than a paragraph followed by a list. Line 125–     Absolute Values:             {@code GridBagConstraints.NORTH}             Orientation

Re: [OpenJDK 2D-Dev] [13] RFR: JDK-8221263: [TEST_BUG] RemotePrinterStatusRefresh test is hard to use

2019-04-08 Thread Alexey Ivanov
Thank you, Sergey and Phil, for your review! -- Alexey On 08/04/2019 22:21, Phil Race wrote: +1 -phil. On 4/8/2019 12:14 PM, Sergey Bylokhov wrote: On 08/04/2019 03:14, Alexey Ivanov wrote: Exactly! I would've done it if it had been possible. Changing the minRefreshTime requires changes

Re: [OpenJDK 2D-Dev] [13] RFR: JDK-8221263: [TEST_BUG] RemotePrinterStatusRefresh test is hard to use

2019-04-08 Thread Alexey Ivanov
On 05/04/2019 23:32, Sergey Bylokhov wrote: On 05/04/2019 15:30, Sergey Bylokhov wrote: On 03/04/2019 09:35, Alexey Ivanov wrote: We can make minRefreshTime equal to 2 minutes but leave the default refresh time of 4 minutes. Does it sound good? This way the time of waiting for two refresh

Re: [OpenJDK 2D-Dev] [13] RFR: JDK-8221263: [TEST_BUG] RemotePrinterStatusRefresh test is hard to use

2019-04-03 Thread Alexey Ivanov
Hi Phil, Sergey, On 01/04/2019 13:08, Alexey Ivanov wrote: On 29/03/2019 20:35, Sergey Bylokhov wrote: But it looks like an overkill to wait 8 minutes for one test, isn't it? I agree 8 minutes seem too much. However, I admit it might take even more time to setup a network printer

Re: [OpenJDK 2D-Dev] [13] RFR: JDK-8221263: [TEST_BUG] RemotePrinterStatusRefresh test is hard to use

2019-04-01 Thread Alexey Ivanov
On 29/03/2019 08:28, Alexey Ivanov wrote: Please take a look at the updated webrev where I've removed @ignore tag from the test: http://cr.openjdk.java.net/~aivanov/8221263/webrev.1/ On 29/03/2019 01:09, Philip Race wrote: Are you looking for a reason other than that the implementation is set

Re: [OpenJDK 2D-Dev] [13] RFR: JDK-8221263: [TEST_BUG] RemotePrinterStatusRefresh test is hard to use

2019-03-29 Thread Alexey Ivanov
you add the step6 to the instruction. 197 +  "updated.\n" 198 + "Step 6: If the list is not updated, wait for another " 199 +  "4 minutes, and then click Refresh again.\n" On 28/03/2019 0

Re: [OpenJDK 2D-Dev] [13] RFR: JDK-8217707: JNICALL declaration breaks Splash screen functions

2019-03-28 Thread Alexey Ivanov
On 28/03/2019 17:15, Philip Race wrote: > I've run SplashScreen jtreg tests, all tests pass. I assume you mean you did this for 32 AND 64 bit builds ? Yes, I ran the tests for both 32 and 64 bit builds. -- Alexey If so, then +1 -phil. On 3/28/19, 9:11 AM, Alexey Ivanov wrote:

Re: [OpenJDK 2D-Dev] [13] RFR: JDK-8217707: JNICALL declaration breaks Splash screen functions

2019-03-28 Thread Alexey Ivanov
Any volunteers for review? On 24/03/2019 19:18, Alexey Ivanov wrote: Hi, Please review the fix for jdk 13. bug: https://bugs.openjdk.java.net/browse/JDK-8217707 webrev: http://cr.openjdk.java.net/~aivanov/8217707/webrev.0/ Description: Splash screen functionality is broken in 32 bit Windows

[OpenJDK 2D-Dev] [13] RFR: JDK-8221263: [TEST_BUG] RemotePrinterStatusRefresh test is hard to use

2019-03-28 Thread Alexey Ivanov
Hi, Please review the following fix for jdk 13: bug: https://bugs.openjdk.java.net/browse/JDK-8221263 webrev: http://cr.openjdk.java.net/~aivanov/8221263/webrev.0/ This is a complete re-write of the test. It's semi-automatic: the tester is to add or remove a remote printer and to make sure

Re: [OpenJDK 2D-Dev] [13] RFR: JDK-8221412: lookupPrintServices() does not always update the list of Windows remote printers

2019-03-27 Thread Alexey Ivanov
umPrinters(PRINTER_ENUM_CONNECTIONS, … If the list is not empty, it contains only remote printers. Nothing to filter. Regards, Alexey -phil. On 3/26/19, 1:22 PM, Alexey Ivanov wrote: Please see the updated webrev: http://cr.openjdk.java.net/~aivanov/8221412/webrev.1/ The difference between .0 and .1

[OpenJDK 2D-Dev] [13] RFR: JDK-8217707: JNICALL declaration breaks Splash screen functions

2019-03-24 Thread Alexey Ivanov
Hi, Please review the fix for jdk 13. bug: https://bugs.openjdk.java.net/browse/JDK-8217707 webrev: http://cr.openjdk.java.net/~aivanov/8217707/webrev.0/ Description: Splash screen functionality is broken in 32 bit Windows. It's because the functions in splashscreen.dll are exported with

Re: [OpenJDK 2D-Dev] RFR: JDK-8218682 + JDK-8198411: [TEST_BUG] DashOffset fails in mach5 + Two java2d tests are unstable in mach5

2019-03-01 Thread Alexey Ivanov
On 21/02/2019 22:48, Sergey Bylokhov wrote: On 21/02/2019 04:23, Alexey Ivanov wrote: Thank you, Sergey, for looking into this. I guess this case requires more investigation. At first sight, it does not look right, does it? Right, I am not sure that "IndexColorModel" i

Re: [OpenJDK 2D-Dev] RFR. Repeated words typos in java.desktop

2019-02-21 Thread Alexey Ivanov
On 20/02/2019 01:38, Sergey Bylokhov wrote: Hi, Andrey. I found only one questionable place in the fix: == /**   * Returns an object created with id=key. If the object is not of - * type type, this will throw an exception. + * that type, this will throw an

Re: [OpenJDK 2D-Dev] RFR: JDK-8218682 + JDK-8198411: [TEST_BUG] DashOffset fails in mach5 + Two java2d tests are unstable in mach5

2019-02-21 Thread Alexey Ivanov
On 14/02/2019 22:39, Sergey Bylokhov wrote: On 14/02/2019 13:02, Alexey Ivanov wrote: BTW do we sure that the usage of IndexColorModel is not a bug? I don't think it's a bug. Likely Windows Server OS is installed in Server Code mode which has limited GUI support. I was able to get

Re: [OpenJDK 2D-Dev] RFR. Repeated words typos in java.desktop

2019-02-21 Thread Alexey Ivanov
Hi Andrey, src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java /*   * Used to override if system (desktop) text anti-aliasing settings should - * be used. The reasons for this are are is that currently its "off" + * be used. The reasons for this are

Re: [OpenJDK 2D-Dev] RFR: JDK-8218682 + JDK-8198411: [TEST_BUG] DashOffset fails in mach5 + Two java2d tests are unstable in mach5

2019-02-14 Thread Alexey Ivanov
/2019 06:07, Alexey Ivanov wrote: Hi Sergey, Do you have any comments for the latest webrev: http://cr.openjdk.java.net/~aivanov/8218682-8198411/webrev.01/ Do I push the fix? Regards, Alexey On 12/02/2019 18:33, Phil Race wrote: +1 -phil. On 2/12/19 6:24 AM, Alexey Ivanov wrote: Hi Phil

Re: [OpenJDK 2D-Dev] RFR: JDK-8218682 + JDK-8198411: [TEST_BUG] DashOffset fails in mach5 + Two java2d tests are unstable in mach5

2019-02-14 Thread Alexey Ivanov
Hi Sergey, Do you have any comments for the latest webrev: http://cr.openjdk.java.net/~aivanov/8218682-8198411/webrev.01/ Do I push the fix? Regards, Alexey On 12/02/2019 18:33, Phil Race wrote: +1 -phil. On 2/12/19 6:24 AM, Alexey Ivanov wrote: Hi Phil, On 11/02/2019 18:32, Phil Race

Re: [OpenJDK 2D-Dev] RFR: JDK-8218682 + JDK-8198411: [TEST_BUG] DashOffset fails in mach5 + Two java2d tests are unstable in mach5

2019-02-12 Thread Alexey Ivanov
Hi Phil, On 11/02/2019 18:32, Phil Race wrote: On 2/11/19 1:44 AM, Alexey Ivanov wrote: Hi Phil, On 08/02/2019 21:02, Phil Race wrote: can you add @key headful to all these tests ? Yes, I can if you think it's required. Yes. I think it is required. Please see the updated webrev: http

Re: [OpenJDK 2D-Dev] RFR: JDK-8218682 + JDK-8198411: [TEST_BUG] DashOffset fails in mach5 + Two java2d tests are unstable in mach5

2019-02-12 Thread Alexey Ivanov
On 12/02/2019 02:14, Sergey Bylokhov wrote: On 11/02/2019 10:41, Alexey Ivanov wrote: Let me experiment with this. Would it be acceptable if I submit a new CR to improve these tests? Ok, fine. Submitted https://bugs.openjdk.java.net/browse/JDK-8218827 -- Regards, Alexey

Re: [OpenJDK 2D-Dev] RFR: JDK-8218682 + JDK-8198411: [TEST_BUG] DashOffset fails in mach5 + Two java2d tests are unstable in mach5

2019-02-11 Thread Alexey Ivanov
On 11/02/2019 18:27, Sergey Bylokhov wrote: On 11/02/2019 09:28, Alexey Ivanov wrote: No, it does not look like it's possible directly. In the case of DashOffset, VolatileImage contains #F8F8F8 instead of #FF, #CC instead of #FF, #00CC00 instead of #00FF00. In other

Re: [OpenJDK 2D-Dev] RFR: JDK-8218682 + JDK-8198411: [TEST_BUG] DashOffset fails in mach5 + Two java2d tests are unstable in mach5

2019-02-11 Thread Alexey Ivanov
Hi Sergey, On 11/02/2019 17:03, Sergey Bylokhov wrote: Hi, Alexey. On 11/02/2019 01:44, Alexey Ivanov wrote: Isn't isHeadless() used by jtreg itself? These tests seem to have failed only in Windows where there's no true headless environment. Recent versions of Windows Server allow

Re: [OpenJDK 2D-Dev] RFR: JDK-8218682 + JDK-8198411: [TEST_BUG] DashOffset fails in mach5 + Two java2d tests are unstable in mach5

2019-02-11 Thread Alexey Ivanov
message for skipping VolatileImage when IndexColorModel is in effect… Regards, Alexey -phil. On 2/8/19 12:13 PM, Alexey Ivanov wrote: Hi, Please review the fix for jdk 13: bugs: https://bugs.openjdk.java.net/browse/JDK-8218682 https://bugs.openjdk.java.net/browse/JDK-8198411 webrev: http

[OpenJDK 2D-Dev] RFR: JDK-8218682 + JDK-8198411: [TEST_BUG] DashOffset fails in mach5 + Two java2d tests are unstable in mach5

2019-02-08 Thread Alexey Ivanov
Hi, Please review the fix for jdk 13: bugs: https://bugs.openjdk.java.net/browse/JDK-8218682 https://bugs.openjdk.java.net/browse/JDK-8198411 webrev: http://cr.openjdk.java.net/~aivanov/8218682-8198411/webrev.00/ Description: The updated DashOffset test proved to fail in mach5. It passed

[OpenJDK 2D-Dev] [13] RFR: JDK-8217263: Automate DashOffset test

2019-02-06 Thread Alexey Ivanov
Hi, Please review the fix for jdk 13. bug: https://bugs.openjdk.java.net/browse/JDK-8217263 webrev: http://cr.openjdk.java.net/~aivanov/8217263/webrev.00/ Description: The test has been re-worked to an automatic test. It uses only 2D API. When run in headful environment, it also tests with

Re: [OpenJDK 2D-Dev] [12] Review Request: 8214076 Cleanup the code related to GraphicsEnvironment/Device/Configuration

2019-01-15 Thread Alexey Ivanov
Looks good. There's one inconsistency though: java.desktop/macosx/classes/sun/lwawt/macosx/CPrinterDevice.java 72 return new GraphicsConfiguration[] {config}; In all the other implementations of getConfigurations() method, there's no space between brackets and braces. Shall the

Re: [OpenJDK 2D-Dev] [13] Review Request: 8211885 Duplicate id declarations in java.awt.geom.Path2D

2019-01-12 Thread Alexey Ivanov
Hi Sergey, Looks good to me. On 11/01/2019 22:33, Sergey Bylokhov wrote: Hello. Please review the fix for jdk 13. Bug: https://bugs.openjdk.java.net/browse/JDK-8211885 Webrev: http://cr.openjdk.java.net/~serb/8211885/webrev.00 Duplicated and unused id were removed from the javadoc. --

Re: [OpenJDK 2D-Dev] [12] RFR(XS) JDK-8214817: Bad links in ImageInputStream.java & ImageOutputStream.java

2018-12-07 Thread Alexey Ivanov
Sure! +1 Regards, Alexey On 07/12/2018 09:22, Jayathirth D V wrote: Hi Alexey, Thanks for the review. I will add space before pushing the change. Regards, Jay -Original Message- From: Alexey Ivanov Sent: Thursday, December 06, 2018 12:45 AM To: Jayathirth D V; 2d-dev Subject: Re

Re: [OpenJDK 2D-Dev] [12] RFR(XS) JDK-8214817: Bad links in ImageInputStream.java & ImageOutputStream.java

2018-12-05 Thread Alexey Ivanov
Hi Jay, “modified UTF-8” had space before but it doesn't. Otherwise, looks good. Regards, Alexey On 05/12/2018 12:35, Jayathirth D V wrote: Hello All, Please review the following fix in JDK12: Bug : https://bugs.openjdk.java.net/browse/JDK-8214817 Webrev :

Re: [OpenJDK 2D-Dev] [12] RFR JDK-8213051:Invalid use of HTML5 in javax.print files

2018-11-30 Thread Alexey Ivanov
Hi Prasanta, Looks good to me. Regards, Alexey On 30/11/2018 17:23, Prasanta Sadhukhan wrote: Hi Alexey, Ok. Modified webrev: http://cr.openjdk.java.net/~psadhukhan/8213051/webrev.2/ Regards Prasanta On 30-Nov-18 10:12 PM, Alexey Ivanov wrote: Hi Prasanta, Adding style="text-align: c

Re: [OpenJDK 2D-Dev] [12] RFR JDK-8213051:Invalid use of HTML5 in javax.print files

2018-11-30 Thread Alexey Ivanov
1/ Regards Prasanta On 30-Nov-18 4:50 PM, Alexey Ivanov wrote: Hi Prasanta, Would the presentation benefit from to keep X centred and thus to preserve the visual appearance? Do you mind updating the copyright? Otherwise, the change looks good to me. Regards, Alexey On 30/11/2018 07:41, Prasanta

Re: [OpenJDK 2D-Dev] [12] RFR JDK-8213051:Invalid use of HTML5 in javax.print files

2018-11-30 Thread Alexey Ivanov
Hi Prasanta, Would the presentation benefit from to keep X centred and thus to preserve the visual appearance? Do you mind updating the copyright? Otherwise, the change looks good to me. Regards, Alexey On 30/11/2018 07:41, Prasanta Sadhukhan wrote: Hi All, Please review a doc-fix to

Re: [OpenJDK 2D-Dev] [11] RFR for JDK-8202476: ImageLib is broken in 32 bit Windows

2018-05-04 Thread Alexey Ivanov
Thank you! -- Alexey On 04/05/2018 18:53, Phil Race wrote: Yes, your confirmation on the testing was all that was needed. -phil. On 5/4/2018 10:45 AM, Alexey Ivanov wrote: Hi Phil, Just to confirm: do you approve the change? Thank you, Alexey On 02/05/2018 19:24, Alexey Ivanov wrote: Hi

Re: [OpenJDK 2D-Dev] [11] RFR for JDK-8202476: ImageLib is broken in 32 bit Windows

2018-05-04 Thread Alexey Ivanov
Hi Phil, Just to confirm: do you approve the change? Thank you, Alexey On 02/05/2018 19:24, Alexey Ivanov wrote: Hi Phil, Thank you for your review. On 02/05/2018 17:28, Phil Race wrote: So ... the original change that removed the mapfiles broke the 32 bit build because of inconsistency

Re: [OpenJDK 2D-Dev] [11] RFR for JDK-8202476: ImageLib is broken in 32 bit Windows

2018-05-02 Thread Alexey Ivanov
as well. /Magnus 2 maj 2018 kl. 11:52 skrev Alexey Ivanov <alexey.iva...@oracle.com>: Hi, Could you please review the following fix for jdk11? bug: https://bugs.openjdk.java.net/browse/JDK-8202476 webrev: http://cr.openjdk.java.net/~aivanov/8202476/jdk11/webrev.0/ This is a follow-

[OpenJDK 2D-Dev] [11] RFR for JDK-8202476: ImageLib is broken in 32 bit Windows

2018-05-02 Thread Alexey Ivanov
Hi, Could you please review the following fix for jdk11? bug: https://bugs.openjdk.java.net/browse/JDK-8202476 webrev: http://cr.openjdk.java.net/~aivanov/8202476/jdk11/webrev.0/ This is a follow-up fix for JDK-8201226 which enabled building JDK for 32 bit Windows, its code review:

[OpenJDK 2D-Dev] [8u-dev] RFR for JDK-8201240: Improve releasing native resources of BufImgSurfaceData.ICMColorData

2018-04-23 Thread Alexey Ivanov
Hi, Could you please review the following backport to 8u-dev? jbs: https://bugs.openjdk.java.net/browse/JDK-8201240 review: http://mail.openjdk.java.net/pipermail/2d-dev/2018-April/009122.html jdk11 changeset: http://hg.openjdk.java.net/jdk/client/rev/69f7e3ed043c The patch does not apply

[OpenJDK 2D-Dev] [8u-dev] RFR for JDK-8201433: Fix potential crash in BufImg_SetupICM

2018-04-23 Thread Alexey Ivanov
Hi, Could you please review the following backport to 8u-dev? jbs: https://bugs.openjdk.java.net/browse/JDK-8201433 review: http://mail.openjdk.java.net/pipermail/2d-dev/2018-April/009129.html jdk11 changeset: http://hg.openjdk.java.net/jdk/client/rev/4ed714d1f90b The patch does not apply

Re: [OpenJDK 2D-Dev] 8201226 missing JNIEXPORT / JNICALL at some places in function declarations/implementations - was : RE: missing JNIEXPORT / JNICALL at some places in function declarations/impleme

2018-04-16 Thread Alexey Ivanov
, Matthias -Original Message- From: Alexey Ivanov [mailto:alexey.iva...@oracle.com] Sent: Donnerstag, 12. April 2018 23:53 To: Phil Race <philip.r...@oracle.com>; Baesken, Matthias <matthias.baes...@sap.com>; Alan Bateman <alan.bate...@oracle.com>; Magnus Ihse Bursi

Re: [OpenJDK 2D-Dev] [11] RFR for JDK-8201433: Fix potential crash in BufImg_SetupICM

2018-04-12 Thread Alexey Ivanov
other purposes. The test exhausts the available native memory to make malloc fail. The amount of used memory reaches close to 2G before it fails. Regards, Alexey On 12/04/2018 08:25, Alexey Ivanov wrote: Hi, Please review the fix for jdk11: bug: https://bugs.openjdk.java.net/browse/JDK-8

Re: [OpenJDK 2D-Dev] 8201226 missing JNIEXPORT / JNICALL at some places in function declarations/implementations - was : RE: missing JNIEXPORT / JNICALL at some places in function declarations/impleme

2018-04-12 Thread Alexey Ivanov
Hi  Alan , this is the up to date webrev . However we want to add   Alexey   Ivanov  as additional  author . As I read it, this changes the calling convention of these functions on 32-bit Windows but it will have no impact on 64-bit Windows (as __stdcall is ignored) or other platforms, is that cor

Re: [OpenJDK 2D-Dev] 8201226 missing JNIEXPORT / JNICALL at some places in function declarations/implementations - was : RE: missing JNIEXPORT / JNICALL at some places in function declarations/impleme

2018-04-12 Thread Alexey Ivanov
,  but  no  response   so far . Maybe  the submit repo  is not working currently  ,  not sure about it . Best regards , Matthias -Original Message- From: Baesken, Matthias Sent: Mittwoch, 11. April 2018 11:20 To: 'Alexey Ivanov' <alexey.iva...@oracle.com>; Magnus Ihse Bursie <magnus

<    1   2   3   >