Re: AWT Dev [9] Review Request: 8058136 Test api/java_awt/SplashScreen/index.html\#ClosedSplashScreenTests fails because of java.lang.IllegalStateException was not thrown

2014-09-12 Thread Anthony Petrov
+1 -- best regards, Anthony On 9/12/2014 2:45 PM, Alexander Zvegintsev wrote: Hello Sergey, the fix looks good to me. Thanks, Alexander. On 09/12/2014 02:26 PM, Sergey Bylokhov wrote: Hello, Please review the fix for jdk 9. According to specification createGraphics() should throw

Re: AWT Dev FW: FW: Fix for AWT on arbitrary non-reparenting window managers

2014-09-10 Thread Anthony Petrov
Hi Chauncey, Yes, generally this looks like a good solution. And a search on the Internet suggests that the _JAVA_AWT_WM_NONREPARENTING variable is pretty much a standard now. We'll still need to undergo an internal API approval process (CCC) to adopt this new variable name, but I don't

Re: AWT Dev Pinch to zoom

2014-09-09 Thread Anthony Petrov
Hi Denis, Long time no see. Did you miss AWT? :) We would be glad to accept patches from you. However, I think you will need to sign an OCA before we can do that: http://www.oracle.com/technetwork/community/oca-486395.html -- best regards, Anthony On 9/8/2014 4:12 PM, Denis Fokin wrote:

Re: AWT Dev Review Request for 8056911: Remove internal API usage from ExtendedRobot class

2014-09-09 Thread Anthony Petrov
Well, if you want to take the risk, let's do it this way then. -- best regards, Anthony On 9/9/2014 3:28 PM, Sergey Bylokhov wrote: On 09.09.2014 15:15, Anthony Petrov wrote: and the current waitForIdle() would simply call waitForIdle(false). This would be safe enough and elegant enough

Re: AWT Dev CFV: New AWT group member: Alexander Zvegintsev

2014-09-08 Thread Anthony Petrov
Vote: YES -- best regards, Anthony On 9/3/2014 2:44 PM, Artem Ananiev wrote: I hereby nominate Alexander Zvegintsev (OpenJDK user name: azvegint) to Membership in the AWT Group. Alexander is a member of AWT/Swing group at Oracle. He has contributed 20+ fixes to JDK9 so far, and JDK8/8u

Re: AWT Dev Review Request for 8039749: Migrate needed functionality from all subclasses of java.awt.Robot in jdk/test directory to the ancestor

2014-08-29 Thread Anthony Petrov
()).realSync() They call realSync without instantiating a robot. It would be great just replace it with Toolkit.getDefaultToolkit().nativeEventQueueSync() in existing tests and nothing more. Thanks, Dima On 08/29/2014 04:35 PM, Anthony Petrov wrote: Yes, that sounds good to me. We need to consider whether

Re: AWT Dev [7u-dev] Request for Approval and Review: 8056156: [TEST_BUG] Test javax/swing/JFileChooser/8046391/bug8046391.java fails in Windows

2014-08-28 Thread Anthony Petrov
Hi Alexey, The fix looks fine. -- best regards, Anthony On 8/28/2014 11:29 AM, Alexey Ivanov wrote: Hello, Could you please approve the fix of the test in jdk7u-dev? Could you please review the fix? webrev: http://cr.openjdk.java.net/~aivanov/8056156/jdk7/webrev.00/ JBS:

Re: AWT Dev Review Request for 8039749: Migrate needed functionality from all subclasses of java.awt.Robot in jdk/test directory to the ancestor

2014-08-28 Thread Anthony Petrov
, Dima On 08/27/2014 03:16 PM, Anthony Petrov wrote: Hi Dmitriy, While I realize that all the new methods are useful when writing JDK regression tests, do you have any evidence that would suggest that these same methods could be useful to and/or have been requested by external developers? All

Re: AWT Dev Review Request for 8039749: Migrate needed functionality from all subclasses of java.awt.Robot in jdk/test directory to the ancestor

2014-08-28 Thread Anthony Petrov
Hi Dmitriy, On 8/28/2014 1:14 PM, Dmitriy Ermashov wrote: On 08/28/2014 12:09 PM, Anthony Petrov wrote: On 8/27/2014 4:54 PM, Yuri Nesterenko wrote: On 08/27/2014 04:25 PM, Dmitriy Ermashov wrote: At first, let me focus on fact that the actual motivation of moving functionality

Re: AWT Dev [9] Review request for 6624085: Fourth mouse button (wheel) is treated like second button - isPopupTrigger returns true

2014-08-28 Thread Anthony Petrov
The fix looks great to me. +1. -- best regards, Anthony On 8/27/2014 8:31 PM, Alexander Zvegintsev wrote: Hello Alex, You are welcome and I am glad to see your contribution to OpenJDK project. Your fix looks good to me, it resolves JDK-6624085 issue too, so let it be fixed under this bug ID.

Re: AWT Dev RFR [9] Modular Source Code

2014-08-27 Thread Anthony Petrov
. -- best regards, Anthony On 8/25/2014 1:14 PM, Magnus Ihse Bursie wrote: On 2014-08-20 11:14, Magnus Ihse Bursie wrote: On 2014-08-18 16:15, Anthony Petrov wrote: So I'm not sure if the current set of AWT libraries could be simplified any further. Hope this helps. Thank you for the clarification

Re: AWT Dev Review Request for 8039749: Migrate needed functionality from all subclasses of java.awt.Robot in jdk/test directory to the ancestor

2014-08-27 Thread Anthony Petrov
Hi Dmitriy, While I realize that all the new methods are useful when writing JDK regression tests, do you have any evidence that would suggest that these same methods could be useful to and/or have been requested by external developers? All of them look like convenient APIs and I'm not

Re: AWT Dev RFE: Listeners with Adapter-classes should have empty default methods

2014-08-25 Thread Anthony Petrov
Hi Andreas, Yes, in fact Petr has proposed this same enhancement back in January: http://mail.openjdk.java.net/pipermail/awt-dev/2014-January/006799.html Do you want to contribute a patch for this RFE? If so, please read this document: http://openjdk.java.net/contribute/ The most important

Re: AWT Dev RFE: Listeners with Adapter-classes should have empty default methods

2014-08-25 Thread Anthony Petrov
Sounds good. Thanks! -- best regards, Anthony On 8/25/2014 2:32 PM, Andreas Lundblad wrote: On Mon, Aug 25, 2014 at 12:25 PM, Anthony Petrov anthony.pet...@oracle.com mailto:anthony.pet...@oracle.com wrote: Hi Andreas, Yes, in fact Petr has proposed this same enhancement back

AWT Dev [9/8u40] Review request for RT-37149 and JDK-8049065 : Implement DnD for SwingNode

2014-07-18 Thread Anthony Petrov
Hi Petr, Anton, Artem, Steve, Please review the fix at https://javafx-jira.kenai.com/browse/RT-37149 Webrevs: JDK: http://cr.openjdk.java.net/~anthony/9-5.2/ FX: http://cr.openjdk.java.net/~anthony/g-522-swingNodeDnD-RT-37149.3/ JavaFX implements the DragSourceContextPeer and

Re: AWT Dev [9] Review request for 8048289 Gtk: call to UIManager.getSystemLookAndFeelClassName() leads to crash

2014-07-17 Thread Anthony Petrov
Hi Alexander, The fix looks fine. I'd also mention the JDK bug id in the comment at line 436 (no need for a new webrev with this change). -- best regards, Anthony On 7/16/2014 8:56 PM, Alexander Zvegintsev wrote: Hello AWT team, please review the fix

Re: AWT Dev [9] Review Request: 8035568 [macosx] Cursor management unification.

2014-07-17 Thread Anthony Petrov
. The easiest way to achieve this is to not share your objects between threads. With best regards. Petr. On 11 июля 2014 г., at 15:15, Anthony Petrov anthony.pet...@oracle.com wrote: Hi Petr, The fix looks good to me overall. A few comments: 1. src/macosx/classes/sun/lwawt/LWMouseInfoPeer.java

Re: AWT Dev [9] Review Request: 8047336 Read flavormap.properties as resource

2014-07-15 Thread Anthony Petrov
highly unlikely we would ever make such a mime-type. And we can update the parser when we need. If I handle this situation now this would be just dead code and unneeded complexity. With best regards. Petr. On 14 июля 2014 г., at 21:00, Anthony Petrov anthony.pet...@oracle.com wrote: Hi Petr

Re: AWT Dev [9] Review Request: 8047336 Read flavormap.properties as resource

2014-07-14 Thread Anthony Petrov
you please review the build part of the following fix: http://cr.openjdk.java.net/~pchelko/9/8047336/webrev.01/ Thank you. With best regards. Petr. On 02 июля 2014 г., at 15:13, Anthony Petrov anthony.pet...@oracle.com wrote: Thanks. Note that your email editor messed up the HTML part

Re: AWT Dev [9] Review Request: 8035568 [macosx] Cursor management unification.

2014-07-11 Thread Anthony Petrov
Hi Petr, The fix looks good to me overall. A few comments: 1. src/macosx/classes/sun/lwawt/LWMouseInfoPeer.java 55 // Most likely the cached window under cursor is correct and we do not need the native check. Perhaps instead it would make sense to describe here when the first

Re: AWT Dev [9] Review Request: 8049830 Remove reflection from ScreenMenuBar

2014-07-10 Thread Anthony Petrov
+1 -- best regards, Anthony On 7/10/2014 11:26 AM, Petr Pchelko wrote: Hello, AWT Team. Please review a simple cleanup: https://bugs.openjdk.java.net/browse/JDK-8049830 The fix is available here: http://cr.openjdk.java.net/~pchelko/9/8049830/webrev.00/ Just replacing nasty reflection with

Re: AWT Dev [9] Review Request: 8049583 Test closed/java/awt/List/ListMultipleSelectTest/ListMultipleSelectTest fails on Window XP

2014-07-10 Thread Anthony Petrov
Hi Sergey, I agree if this change goes to 8u as the least risky thing we can do now. For 9 I'd prefer to fix the root cause of the problem, which is related to the wrong cast of e.g. AwtList::_IsSelected from (jboolean (*)(void*)) to (void *(*)(void *)) - we simply should have never

Re: AWT Dev [9] Review Request: 8032864 [macosx] sigsegv (0Xb) Being Generated When Starting JDev With Voiceover Running

2014-07-10 Thread Anthony Petrov
Hi Petr, I'm fine with the targeted fix. We often do a similar thing in JavaFX when processing various events, so the approach is proven to work good. However, generally I agree with your comment from the bug report about the necessity to process dispose selectors in the outer event loop

Re: AWT Dev Swing Dev [9] Review request for JDK-8046559: NPE when changing Windows theme

2014-07-04 Thread Anthony Petrov
Hi Alexey, src/windows/classes/sun/awt/windows/WToolkit.java 940 final MapString, Object props = getWProps(); 941 updateXPStyleEnabled(props.get(XPSTYLE_THEME_ACTIVE)); 971 private synchronized MapString, Object getWProps() { 972 return (wprops != null) ?

Re: AWT Dev Swing Dev [9] Review request for JDK-8046559: NPE when changing Windows theme

2014-07-04 Thread Anthony Petrov
the updated webrev? http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.01/ Thank you, Alexey. On 04.07.2014 14:12, Anthony Petrov wrote: Hi Alexey, src/windows/classes/sun/awt/windows/WToolkit.java 940 final MapString, Object props = getWProps(); 941 updateXPStyleEnabled(props.get

Re: AWT Dev [9] Review Request: 8033367 [macosx] Appletviewer was broken in jdk8 b124

2014-07-02 Thread Anthony Petrov
: Hello, Is anyone willing to make a second review? Thank you. With best regards. Petr. On 16 июня 2014 г., at 22:32, Anthony Petrov anthony.pet...@oracle.com wrote: Hi Petr, Thanks for the update. The fix looks fine. -- best regards, Anthony On 6/16/2014 3:31 PM, Petr Pchelko wrote: Hello

Re: AWT Dev [9] Review Request: 8048549 [macosx] Disable usage of system menu bar if AWT is embedded in FX

2014-07-02 Thread Anthony Petrov
Hi Petr, The fix looks fine to me. Note that there's also AWT API to set a menubar, and it seems (I haven't investigated deeply) that the LWAWT implementation uses the system menu bar unconditionally in this case. I believe we can assume that AWT API isn't used widely and we can leave it as

Re: AWT Dev [9] Review Request: 8048265 AWT crashes inside CCombinedSegTable::In called from Java_sun_awt_windows_WDefaultFontCharset_canConvert

2014-07-01 Thread Anthony Petrov
Looks fine. -- best regards, Anthony On 7/1/2014 9:12 AM, Sergey Bylokhov wrote: Hello. Please review the fix for jdk 9. Bug was triggered by the change in JDK-8032435, when WingDings.java was changed to non-public class. This class is used in native, and looks like some of these places, when

Re: AWT Dev Review request for 8040076: java.awt.List objects allowing multiple selections are not GC-ed

2014-07-01 Thread Anthony Petrov
, Anthony Petrov wrote: Hi Artem, 1. Your code still uses wrong formatting. Please just open this page to see the problem with the lines indentation: http://cr.openjdk.java.net/~mcherkas/artem/webrev.02/src/windows/native/sun/windows/awt_Component.cpp.sdiff.html 2. DASSERT() is only relevant

Re: AWT Dev [9] Review Request: 8047336 Read flavormap.properties as resource

2014-07-01 Thread Anthony Petrov
Hi Petr, The fix looks fine to me. Only one question: src/share/classes/java/awt/datatransfer/SystemFlavorMap.java 234 } catch (IOException e) { 235 System.err.println(Warning reading flavor mapping: + e.getMessage()); Is there a reason to hide the stack trace of the

Re: AWT Dev [9] Review Request: JDK-8047799 Remove WindowClosingSupport

2014-06-26 Thread Anthony Petrov
was removed. With best regards. Petr. On 24 июня 2014 г., at 15:33, Anthony Petrov anthony.pet...@oracle.com wrote: Thanks! -- best regards, Anthony On 6/23/2014 10:04 PM, Petr Pchelko wrote: Hello, Anthony. Out of curiosity, is the import BooleanSupplier statement in Dialog.java only needed

Re: AWT Dev Review a fix for List leak

2014-06-26 Thread Anthony Petrov
Hi Artem, Please configure you code editor so that it formats the code that you modify according to Java code conventions used in OpenJDK (4-spaces line indentation, a space after if and before {, etc.) Also, please include the bug id and synopsis to the subject line of your review

Re: AWT Dev [9] Review Request: JDK-8047799 Remove WindowClosingSupport

2014-06-24 Thread Anthony Petrov
it there for some reason. It’s not needed, I’ll remove it before the push. With best regards. Petr. On Jun 23, 2014, at 9:50 PM, Anthony Petrov anthony.pet...@oracle.com wrote: Looks fine. Out of curiosity, is the import BooleanSupplier statement in Dialog.java only needed to please the compiler when

Re: AWT Dev [9] Review request for 8043869 [macosx] java -splash does not honor @2x hi dpi notation for retina support

2014-06-23 Thread Anthony Petrov
/libsplashscreen/mapfile-vers +1, good to note this, always trips people up. Otherwise looks good. Kumar On 6/17/2014 7:45 AM, Anthony Petrov wrote: Hi Alexander, [ I'm also adding Neil who's taking over the launcher code ] 1. There's a few code formatting issues that should be fixed

Re: AWT Dev [9] Review Request: JDK-8047799 Remove WindowClosingSupport

2014-06-23 Thread Anthony Petrov
Looks fine. Out of curiosity, is the import BooleanSupplier statement in Dialog.java only needed to please the compiler when using () - true? Does the code not compile w/o the import? -- best regards, Anthony On 6/23/2014 1:46 PM, Petr Pchelko wrote: Hello, AWT Team. Please review a

Re: AWT Dev [9] Review Request: JDK-8047798 Remove EventQueueDelegate

2014-06-23 Thread Anthony Petrov
The fix looks fine to me. this fix is a reverse-changeset for JDK-6638195 And I assume it also reverses JDK-6699328 ? -- best regards, Anthony On 6/23/2014 6:40 PM, Petr Pchelko wrote: Hello, Anthony. Thank you for the review. I've checked that this fix is a reverse-changeset for

Re: AWT Dev [9] Review Request: 8047336 Read flavormap.properties as resource

2014-06-20 Thread Anthony Petrov
On 6/20/2014 3:29 PM, Artem Ananiev wrote: On 6/20/2014 3:19 PM, Anthony Petrov wrote: I ran the following query: https://www.google.com/#q=custom+flavormap.properties and the search yielded the following forum thread: https://community.oracle.com/thread/1293314?start=0tstart=0 where

Re: AWT Dev [9] Review request for 8043869 [macosx] java -splash does not honor @2x hi dpi notation for retina support

2014-06-18 Thread Anthony Petrov
/libsplashscreen/mapfile-vers +1, good to note this, always trips people up. Otherwise looks good. Kumar On 6/17/2014 7:45 AM, Anthony Petrov wrote: Hi Alexander, [ I'm also adding Neil who's taking over the launcher code ] 1. There's a few code formatting issues that should be fixed. For instance: src

Re: AWT Dev [9] Review Request: 8047061 [macosx] Crash when setting display mode

2014-06-17 Thread Anthony Petrov
Hi Petr, The fix looks fine to me. -- best regards, Anthony On 6/17/2014 4:43 PM, Petr Pchelko wrote: Hello, AWT Team. Please review the fix for the issue: https://bugs.openjdk.java.net/browse/JDK-8047061 The fix is available at: http://cr.openjdk.java.net/~pchelko/9/8047061/webrev/ When we

Re: AWT Dev [9] Review request for 8043869 [macosx] java -splash does not honor @2x hi dpi notation for retina support

2014-06-17 Thread Anthony Petrov
Hi Alexander, [ I'm also adding Neil who's taking over the launcher code ] 1. There's a few code formatting issues that should be fixed. For instance: src/share/bin/java.c 1846 if(scaled_splash_name){ 1853 if(scaled_splash_name){

Re: AWT Dev [9] Review request for JDK-8046391: Hang displaying JFileChooser with Windows LF

2014-06-10 Thread Anthony Petrov
+1 -- best regards, Anthony On 6/10/2014 9:52 PM, Alexey Ivanov wrote: Hello AWT team, Could you please review the reverse changeset: http://cr.openjdk.java.net/~aivanov/8046391/jdk9/webrev.02/ This undoes the fixes for - JDK-8039383 NPE when changing Windows Theme, and -

Re: AWT Dev Swing Dev [9] Review request for JDK-8039383: NPE when changing Windows Theme

2014-06-09 Thread Anthony Petrov
ASAP .. -phil. On 6/6/2014 7:03 AM, Anthony Petrov wrote: You're welcome. -- best regards, Anthony On 6/6/2014 5:58 PM, Alexey Ivanov wrote: Hi Anthony, Petr, Thank you for reviewing my fix. Regards, Alexey. On 06.06.2014 15:19, Anthony Petrov wrote: +1 -- best regards, Anthony On 6/6

Re: AWT Dev Swing Dev [9] Review request for JDK-8046239: Build failure in 9-client on all non-Windows platforms

2014-06-09 Thread Anthony Petrov
Hi Alexey, The fix looks fine to me. -- best regards, Anthony On 6/9/2014 5:19 PM, Alexey Ivanov wrote: Hi Petr, Anthony, AWT and Swing teams, Could you please review the following webrev for JDK-8046239 to fix build failure: http://cr.openjdk.java.net/~aivanov/8046239/jdk9/webrev.01/ The

Re: AWT Dev [9] Review request: 8040007 GtkFileDialog strips user inputted filepath

2014-06-09 Thread Anthony Petrov
Hi Alexander, src/solaris/native/sun/awt/sun_awt_X11_GtkFileDialogPeer.c 176 free(prevDir); 177 prevDir = strdup(dir); It's unnecessary to re-duplicate the prevDir on each loop iteration here. I suggest to initialize it once instead. The less pointer operations, the less

Re: AWT Dev [9] Review request: 8040007 GtkFileDialog strips user inputted filepath

2014-06-09 Thread Anthony Petrov
gtk_file_chooser_get_current_folder() is not used and isFromSameDirectory() was introduced. -- Thanks, Alexander. On 06/09/2014 06:07 PM, Anthony Petrov wrote: Hi Alexander, src/solaris/native/sun/awt/sun_awt_X11_GtkFileDialogPeer.c 176 free(prevDir); 177 prevDir = strdup(dir); It's

Re: AWT Dev Swing Dev [9] Review request for JDK-8039383: NPE when changing Windows Theme

2014-06-06 Thread Anthony Petrov
You're welcome. -- best regards, Anthony On 6/6/2014 5:58 PM, Alexey Ivanov wrote: Hi Anthony, Petr, Thank you for reviewing my fix. Regards, Alexey. On 06.06.2014 15:19, Anthony Petrov wrote: +1 -- best regards, Anthony On 6/6/2014 3:20 PM, Petr Pchelko wrote: Hello, Alexey

Re: AWT Dev Review Request: 8046221 [TEST_BUG] Cleanup datatransfer tests

2014-06-06 Thread Anthony Petrov
Hi Petr, I've skimmed through a few tests (didn't review all of them), and they look fine. The 100% pass rate also sounds optimistic. So, +1. -- best regards, Anthony On 6/6/2014 5:05 PM, Petr Pchelko wrote: Hello, AWT Team. Please review the fix for the issue:

Re: AWT Dev [9] Review Request: 8044516 [macosx] ScreenPopupFactory uses native method that could be avoided

2014-06-05 Thread Anthony Petrov
Hi Petr, I'm not really an expert in this code, but technically all the changes look fine to me. Approved. -- best regards, Anthony On 6/5/2014 11:59 AM, Petr Pchelko wrote: Hello, Could somebody please make a second review on this simple cleanup? Thank you. With best regards. Petr. On

Re: AWT Dev Swing Dev [9] Review request for JDK-8039383: NPE when changing Windows Theme

2014-06-05 Thread Anthony Petrov
styles enabled theme to a classic theme. Thank you, Alexey. On 18.04.2014 18:52, Anthony Petrov wrote: Hi Alexey, No, unfortunately I don't have any suggestions right now. As for allowing executing user code on the toolkit thread, we can't accept such a fix. Sorry about that. -- best regards

Re: AWT Dev [9] Review Request: 8033367 [macosx] Appletviewer was broken in jdk8 b124

2014-06-03 Thread Anthony Petrov
Hi Petr, The fix looks good to me. One minor nit: every file that includes AWT_debug.h will contain its own copy of the ShouldPrintVerboseDebugging() function and the debug flag. Could we have only one copy instead? -- best regards, Anthony On 6/3/2014 3:18 PM, Petr Pchelko wrote: Hello,

Re: AWT Dev [9] Review request for 8042465: Applet menus not rendering when browser is full screen on Mac

2014-05-28 Thread Anthony Petrov
/ Thanks, Dmitry On 26/05/2014 16:53, Anthony Petrov wrote: Hi Dmitry, The fix seems to cover only the case when an app is running with the default LF. What is the solution for custom LFs? Can we move the logic for cache disabling to the shared popup-related code somewhere so that the issue

Re: AWT Dev Review Request for 8032527 - fix a couple doclint errors in java/awt/geom/Path2D

2014-05-28 Thread Anthony Petrov
Hi Steve, This belongs to 2d-dev@openjdk mailing list. Please re-post your review request there. -- best regards, Anthony On 5/28/2014 9:33 PM, Steve Sides wrote: Hello, Could you please review the fix for the following bug: https://bugs.openjdk.java.net/browse/JDK-8032527 It is a just a

Re: AWT Dev [9] Review request for 8028617: Dvorak keyboard mapping not honored when ctrl key pressed

2014-05-28 Thread Anthony Petrov
/JDK-8028617 The fix: http://cr.openjdk.java.net/~anashaty/8028617/9/webrev.01/ http://cr.openjdk.java.net/%7Eanashaty/8028617/9/webrev.01/ Thanks! Anton. On 27.05.2014 15:35, Anthony Petrov wrote: Hi Anton, Interesting. I'm not sure if 'oô' looks very good, however, I agree that 'ôô' isn't much

Re: AWT Dev [9] Review request for 8031471: Test closed/java/awt/dnd/FileDialogDropTargetTest/FileDialogDropTargetTest.java fails on Solaris zones virtual hosts

2014-05-27 Thread Anthony Petrov
Hi Alexander, The changes look reasonable. +1. Also, I'd appreciate if you could add the evaluation from your email to the bug report itself. -- best regards, Anthony On 5/27/2014 2:43 PM, Alexander Zvegintsev wrote: Hello, please review the fix:

Re: AWT Dev [9] Review request for 8028617: Dvorak keyboard mapping not honored when ctrl key pressed

2014-05-27 Thread Anthony Petrov
. On 23.05.2014 20:14, Anthony Petrov wrote: On 5/23/2014 8:04 PM, anton nashatyrev wrote: could you please point me to the i18n tests you have mentioned? test/java/awt/im ...? In both open and closed repos. from non-English I'd tested only Russian locale. Do you have in mind some

Re: AWT Dev [9] Review request for 8042465: Applet menus not rendering when browser is full screen on Mac

2014-05-26 Thread Anthony Petrov
, Anthony Petrov wrote: To add to what Petr just said, what is the exact reason to specify the NSWindowCollectionBehaviorCanJoinAllSpaces behavior? I believe that NSWindowCollectionBehaviorFullScreenAuxiliary alone should do the trick, does it not? Petr: we used to build JDK with OS X 10.6 SDK where

Re: AWT Dev [OpenJDK 2D-Dev] [9] Review Request: JDK-8029455 JLightweightFrame: support scaled painting

2014-05-23 Thread Anthony Petrov
PM, Anthony Petrov wrote: Hi Sergey, The original fix provides some updates and clarifications to the javadoc for the LightweightContent.imageBufferReset() method, but they are missing from your fix. Is this intentional? Nope. I just missed this update. I looked at this method closely and got

Re: AWT Dev [9] Review Request: 8043610 Sorting columns in JFileChooser fails with AppContext NPE

2014-05-23 Thread Anthony Petrov
The fix looks good to me. -- best regards, Anthony On 5/22/2014 5:43 PM, Petr Pchelko wrote: Hello, AWT Team. Please review the fix for the issue: https://bugs.openjdk.java.net/browse/JDK-8043610 The fix is available at: http://cr.openjdk.java.net/~pchelko/9/8043610/webrev/ The problem is

Re: AWT Dev [OpenJDK 2D-Dev] [9] Review Request: JDK-8029455 JLightweightFrame: support scaled painting

2014-05-23 Thread Anthony Petrov
On 5/23/2014 3:12 PM, Anton V. Tarasov wrote: On 23.05.2014 14:47, Anthony Petrov wrote: 1. The host bounds are not related to the /content/. Hence, adding this method to the LightweightContent interface would look inconsistent from API perspective. It's not strictly about content (the name

Re: AWT Dev [9] Review Request: 8043393 NullPointerException and no event received when clipboard data flavor changes

2014-05-23 Thread Anthony Petrov
Hi Petr, On 5/22/2014 7:42 PM, Petr Pchelko wrote: Please review a yet another AppContext fix: https://bugs.openjdk.java.net/browse/JDK-8043393 The fix is available here: http://cr.openjdk.java.net/~pchelko/9/8043393/webrev/ checkChange method is called on a Toolkit thread, but we are trying

Re: AWT Dev [OpenJDK 2D-Dev] [9] Review Request: JDK-8029455 JLightweightFrame: support scaled painting

2014-05-23 Thread Anthony Petrov
Petrov wrote: On 5/23/2014 3:12 PM, Anton V. Tarasov wrote: On 23.05.2014 14:47, Anthony Petrov wrote: 1. The host bounds are not related to the /content/. Hence, adding this method to the LightweightContent interface would look inconsistent from API perspective. It's not strictly about content

Re: AWT Dev [9] Review request for 8028617: Dvorak keyboard mapping not honored when ctrl key pressed

2014-05-23 Thread Anthony Petrov
Hi Anton, If you activate the CAPS LOCK mode and type some characters, will those be presented as capital letters in Swing/AWT's text fields and text areas after your fix? (see [1] for a related FX bug) [1] https://javafx-jira.kenai.com/browse/RT-16616 -- best regards, Anthony On 5/23/2014

Re: AWT Dev [9] Review request for 8028617: Dvorak keyboard mapping not honored when ctrl key pressed

2014-05-23 Thread Anthony Petrov
nashatyrev wrote: Anthony, yes, the CapsLock works for me as well. Thanks! Anton On 23.05.2014 19:35, Anthony Petrov wrote: Hi Anton, If you activate the CAPS LOCK mode and type some characters, will those be presented as capital letters in Swing/AWT's text fields and text areas after your

Re: AWT Dev [9] Review Request: 8043646 libosxapp.dylib fails to build on Mac OS 10.9 with clang

2014-05-22 Thread Anthony Petrov
Looks fine. -- best regards, Anthony On 5/22/2014 12:08 PM, Petr Pchelko wrote: Hello, Please review the fix for the issue: https://bugs.openjdk.java.net/browse/JDK-8043646 The fix is available at: http://cr.openjdk.java.net/~pchelko/9/8043646/webrev/ Very simple fix, interesting that the

Re: AWT Dev [9] Review Request: JDK-8043513 Clipboard#getContents(Object) throws IOException

2014-05-22 Thread Anthony Petrov
Looks fine. -- best regards, Anthony On 5/21/2014 4:27 PM, Petr Pchelko wrote: Hello, AWT Team. Please review the fox for the issue: https://bugs.openjdk.java.net/browse/JDK-8043513 The fix is available at: http://cr.openjdk.java.net/~pchelko/9/8043513/webrev/ The problem: When we fetch all

Re: AWT Dev [OpenJDK 2D-Dev] [9] Review Request: JDK-8029455 JLightweightFrame: support scaled painting

2014-05-22 Thread Anthony Petrov
wrote: Hi Sergey, On 22.05.2014 1:44, Sergey Bylokhov wrote: On 5/21/14 10:13 PM, Anthony Petrov wrote: Hi Sergey, The original fix provides some updates and clarifications to the javadoc for the LightweightContent.imageBufferReset() method, but they are missing from your fix. Is this intentional

Re: AWT Dev [OpenJDK 2D-Dev] RFR: Allow using the system libjpeg

2014-05-22 Thread Anthony Petrov
I think that it would be useful to have a bug id prior to sending a review request, so that a review thread for the bug can be easily found in the mailing archive. In the future, please do file a bug first and put its id in the subject line of your review requests. -- best regards, Anthony

Re: AWT Dev [9] Review Request: JDK-8043513 Clipboard#getContents(Object) throws IOException

2014-05-22 Thread Anthony Petrov
it. With best regards. Petr. On May 22, 2014, at 10:44 PM, Sergey Bylokhov sergey.bylok...@oracle.com wrote: Hi, Petr. Submitter complains about IOException itself, not about incorrect stack trace. On 5/22/14 1:39 PM, Anthony Petrov wrote: Looks fine. -- best regards, Anthony On 5/21/2014 4:27 PM

Re: AWT Dev [9] Review Request: JDK-8043513 Clipboard#getContents(Object) throws IOException

2014-05-22 Thread Anthony Petrov
likely an RDP-client bug, not our bug. All we do here is call winapi function ::EnumClipboardFormats to get all available format and then call ::GetClipboardData for each format from that list. No place for a bug left here.. With best regards. Petr. On May 23, 2014, at 12:52 AM, Anthony Petrov

Re: AWT Dev [9] Review Request: JDK-8043513 Clipboard#getContents(Object) throws IOException

2014-05-22 Thread Anthony Petrov
. I have filed https://bugs.openjdk.java.net/browse/JDK-8043807 for incorrect stack trace issue. This fix will go under that bug ID. The original bug will be closed a cannot reproduce. With best regards. Petr. On May 23, 2014, at 1:15 AM, Anthony Petrov anthony.pet...@oracle.com wrote: Closing

Re: AWT Dev RFR: 8043805: Allow using a system-installed libjpeg

2014-05-22 Thread Anthony Petrov
Thanks, Omair. -- best regards, Anthony On 5/23/2014 1:01 AM, Omair Majid wrote: * Anthony Petrov anthony.pet...@oracle.com [2014-05-22 16:48]: I think that it would be useful to have a bug id prior to sending a review request, so that a review thread for the bug can be easily found

Re: AWT Dev [OpenJDK 2D-Dev] [9] Review Request: JDK-8029455 JLightweightFrame: support scaled painting

2014-05-21 Thread Anthony Petrov
in the future. The fix is covering hdpi support in SwingNode on osx + system look and feel(Aqua). http://cr.openjdk.java.net/~serb/8029455/webrev.01 Notes: - This fix depends from two other fixes: JDK- 8041129 and JDK-8041644. Both are under review on 2d alias. On 5/13/14 9:29 PM, Anthony Petrov

Re: AWT Dev [7u-dev] Review request for 8015500: Prevent sending multiple WINDOW_CLOSED events for already disposed windows

2014-05-20 Thread Anthony Petrov
Hi Anton, If the fix is identical, then you don't need another technical review. I'm fine with porting the fix to JDK 7u. -- best regards, Anthony On 5/20/2014 6:20 PM, Anton Litvinov wrote: Hello Anthony and Sergey, Could you please review this backport of the fix , which was reviewed and

Re: AWT Dev [7u-dev] Review request for 8015500: Prevent sending multiple WINDOW_CLOSED events for already disposed windows

2014-05-20 Thread Anthony Petrov
Indeed. Thanks for the reminder, Sergey. In that case Anton should discuss this issue with the JCK team before proceeding. -- best regards, Anthony On 5/20/2014 6:39 PM, Sergey Bylokhov wrote: On 5/20/14 6:37 PM, Anthony Petrov wrote: Hi Anton, If the fix is identical, then you don't need

Re: AWT Dev RFR: Allow using the system libjpeg

2014-05-20 Thread Anthony Petrov
Thanks for the update, Omair. The fix looks good to me now. -- best regards, Anthony On 5/20/2014 9:11 PM, Omair Majid wrote: Hi, Updated webrevs: http://cr.openjdk.java.net/~omajid/webrevs/system-libjpeg/01/ http://cr.openjdk.java.net/~omajid/webrevs/system-libjpeg/01.jdk/ * Anthony Petrov

Re: AWT Dev RFR: Allow using the system libjpeg

2014-05-19 Thread Anthony Petrov
Hi Omair, common/autoconf/libraries.m4 624 [use libjpeg from build system or OpenJDK source (system, bundled) @:bundled@:@])]) @:bundled@:@ should read @:@bundled@:@ - note the missing @. make/lib/Awt2dLibraries.gmk 1236 LIBJPEG_CFLAGS :=

AWT Dev CFV: New jdk9 Committer: David DeHaven

2014-05-19 Thread Anthony Petrov
I hereby nominate David DeHaven (OpenJDK user name: ddehaven) for jdk9 Committer David has contributed a number of patches to JDK 7u, 8, 8u, and 9. Also, he has reviewed many fixes that went into those releases. The AWT Group particularly values his deep expertise in Mac OS X, which helped us

Re: AWT Dev Request for review: 8026385: [macosx] (awt) setjmp/longjmp changes the process signal mask on OS X

2014-05-16 Thread Anthony Petrov
The splashscreen changes look fine to me. Approved. -- best regards, Anthony On 5/16/2014 7:18 PM, David DeHaven wrote: Could someone on AWT team approve the splashscreen changes? -DrD- Approved. -phil. On 5/15/2014 9:31 AM, David DeHaven wrote: Ping! Does this look OK? I've also

Re: AWT Dev [9] Review request for 8042465: Applet menus not rendering when browser is full screen on Mac

2014-05-14 Thread Anthony Petrov
To add to what Petr just said, what is the exact reason to specify the NSWindowCollectionBehaviorCanJoinAllSpaces behavior? I believe that NSWindowCollectionBehaviorFullScreenAuxiliary alone should do the trick, does it not? Petr: we used to build JDK with OS X 10.6 SDK where the

Re: AWT Dev [9] Request for Review: 8003900: X11 dependencies should be removed from Mac OS X build.

2014-05-13 Thread Anthony Petrov
Hi David, src/solaris/native/sun/awt/awt.h 113 #if !defined(HEADLESS) defined(XAWT) 114 extern Display *awt_display; /* awt_GraphicsEnv.c */ You forgot to update this XAWT usage. Otherwise the fix looks fine. -- best regards, Anthony On 5/13/2014 8:30 PM, David DeHaven wrote:

Re: AWT Dev [OpenJDK 2D-Dev] [9] Review Request: JDK-8029455 JLightweightFrame: support scaled painting

2014-05-13 Thread Anthony Petrov
Hi Jim, Sergey, and Anton, I'd like to revive this old thread and finally push this fix, which has been reviewed and approved on this mailing list back in February. The only additional change that I want to introduce, is the addition of default implementations for the

Re: AWT Dev [9] Request for Review: 8003900: X11 dependencies should be removed from Mac OS X build.

2014-05-12 Thread Anthony Petrov
Hi David, The fix looks good to me. To answer your questions: 1. Using the XAWT macro is correct. It is only defined if we're building the XToolkit, which we don't on the Mac. However, everywhere else we actually check #ifdef MACOSX // ... do Mac stuff #else // ... do X11/Linux/Solaris/etc.

Re: AWT Dev [9] Request for Review: 8003900: X11 dependencies should be removed from Mac OS X build.

2014-05-12 Thread Anthony Petrov
Well, I don't have a strong opinion on MACOSX vs. XAWT, and I see your point actually. I've just pointed out that right now this check would look somewhat inconsistent. But I'm OK with the fix as it is. Let's hear other opinions, we need at least one more reviewer anyway. -- best regards,

Re: AWT Dev [7u60] Review Request: JDK-8036861 Application can't be loaded fine, the save dialog can't show up.

2014-05-07 Thread Anthony Petrov
The fix looks good to me. -- best regards, Anthony On 5/6/2014 7:00 PM, Petr Pchelko wrote: Hello, AWT Team. Please review the fix for the issue: https://bugs.openjdk.java.net/browse/JDK-8036861 The fix is available at: http://cr.openjdk.java.net/~pchelko/9/8036861/webrev/ After discussions

Re: AWT Dev RFR(XS): 8042416: X11GraphicsEnvironment.isDisplayLocal() throws NoSuchElementException if DISPLAY host has more IP addresses than a local interface

2014-05-07 Thread Anthony Petrov
Hi Volker, The fix looks fine to me, too. -- best regards, Anthony On 5/5/2014 10:07 PM, Volker Simonis wrote: Hi, could you please review this tiny fix: http://cr.openjdk.java.net/~simonis/webrevs/8042416/ https://bugs.openjdk.java.net/browse/JDK-8042416

Re: AWT Dev Swing Dev [9] Review request for JDK-8039383: NPE when changing Windows Theme

2014-05-07 Thread Anthony Petrov
You're welcome! -- best regards, Anthony On 5/6/2014 12:19 PM, Alexey Ivanov wrote: Hi Anthony, Thank you for your review. And thanks for pointing out no user code is allowed to run on the toolkit thread. -- Regards, Alexey. On 25.04.2014 16:03, Anthony Petrov wrote: Hi Alexey, I'm

Re: AWT Dev [OpenJDK 2D-Dev] Dont use libjpeg-internal macros in splashscreen

2014-05-05 Thread Anthony Petrov
The fix looks good to me, too. -- best regards, Anthony On 5/1/2014 1:19 AM, Phil Race wrote: Trying again with awt as To: rather than bcc: .. -phil. On 4/30/2014 2:12 PM, Phil Race wrote: Looks OK to me, but adding awt-dev as splashscreen is owned by AWT. -phil. On 4/30/2014 1:48 PM,

Re: AWT Dev [9] Review Request: 8042212 [macosx] Toolkit.getScreenResolution() can return incorrect resolution

2014-05-05 Thread Anthony Petrov
Looks fine, but there are extra spaces at lines 159 and 176. Please fix the lines indentation before pushing the fix. -- best regards, Anthony On 4/30/2014 4:13 PM, Sergey Bylokhov wrote: Hello. Please review the small fix for jdk 9. According to documentation CGDisplayScreenSize() can

Re: AWT Dev [9] Review Request: JDK-8042087 [macosx] LWCToolkit.inokeAndWait is calling EventQueue.invokeLater

2014-04-29 Thread Anthony Petrov
Hi Petr, While the bug description and the solution sound reasonable, I'm still a bit concerned about the presence of the if(component==null) branch in the old code. I see that the code has been updated recently (with lambdas and friends), and is aware of the app contexts thing. So someone

Re: AWT Dev [9] Review Request: JDK-8042087 [macosx] LWCToolkit.inokeAndWait is calling EventQueue.invokeLater

2014-04-29 Thread Anthony Petrov
for update releases, but I think it’s OK for JDK 9. It’s always better to catch bugs early. With best regards. Petr. On Apr 29, 2014, at 9:37 PM, Anthony Petrov anthony.pet...@oracle.com wrote: Hi Petr, While the bug description and the solution sound reasonable, I'm still a bit concerned about

Re: AWT Dev [9] Review request: 8041987 [macosx] setDisplayMode crashes

2014-04-28 Thread Anthony Petrov
Hi Petr, The fix looks fine. -- best regards, Anthony On 4/28/2014 1:50 PM, Petr Pchelko wrote: Hello, AWT Team. Please review the fix for the issue: https://bugs.openjdk.java.net/browse/JDK-8041987 The fix is available at: http://cr.openjdk.java.net/~pchelko/9/8041987/ My recent fix with

Re: AWT Dev [9] Review Request: 8027148 SystemFlavorMap.getNativesForFlavor returns list of native formats in incorrect order

2014-04-25 Thread Anthony Petrov
them now? I've made a wrapper class for this cache (see the bottom of the file). With the wrapper we can create the cache lazily and the cache logic is now in one place. With best regards. Petr. On 21.04.2014, at 17:20, Anthony Petrov anthony.pet...@oracle.com wrote: Hi Petr, 1. src/share

Re: AWT Dev [9] Review request: 8041572 [macosx] huge native memory leak in AWTWindow.m

2014-04-25 Thread Anthony Petrov
+1 -- best regards, Anthony On 4/23/2014 5:59 PM, Sergey Bylokhov wrote: Hi, Petr. The fix looks good. On 4/23/14 1:39 PM, Petr Pchelko wrote: Hello, AWT Team. Another huge native leak was found: https://bugs.openjdk.java.net/browse/JDK-8041572 The fix is simple and available here:

Re: AWT Dev [9] Review Request for 8041592: [TEST_BUG] Move 42 AWT hw/lw mixing tests to jdk

2014-04-25 Thread Anthony Petrov
Hi Yuri, Great to see more tests covering the HW/LW Mixing functionality coming in! I briefly skimmed through the patch, and it looks good to me. -- best regards, Anthony On 4/24/2014 1:26 PM, Yuri Nesterenko wrote: Hi, please review this change for

Re: AWT Dev Swing Dev [9] Review request for JDK-8039383: NPE when changing Windows Theme

2014-04-25 Thread Anthony Petrov
, sometimes exceptions do not occur when changing theme of visual styles enabled theme to a classic theme. Thank you, Alexey. On 18.04.2014 18:52, Anthony Petrov wrote: Hi Alexey, No, unfortunately I don't have any suggestions right now. As for allowing executing user code on the toolkit thread, we

Re: AWT Dev [9] Review Request: 8027148 SystemFlavorMap.getNativesForFlavor returns list of native formats in incorrect order

2014-04-21 Thread Anthony Petrov
Hi Petr, 1. src/share/classes/java/awt/datatransfer/SystemFlavorMap.java 118 private MapString, LinkedHashSetDataFlavor getNativeToFlavor() { Usually we use a generic interface, such as Set, instead of a concrete implementation class (LinkedHashSet) in generic types declarations to

Re: AWT Dev [9] Review request for 8014754: [TEST_BUG] child.exe remains after execution java/awt/dnd/ Win32TYMEDSelectionTest and Win32DropTYMEDSelectionTest

2014-04-21 Thread Anthony Petrov
. Please review the new version of fix that meets mentioned requirements: http://cr.openjdk.java.net/~bagiras/9/8014754.2 Thanks, Oleg On 18.04.2014 18:18, Anthony Petrov wrote: Hi Oleg, We don't want to add binary files to the open repository. If you can only add the source code to it and make

Re: AWT Dev Swing Dev [9] Review request for JDK-8039383: NPE when changing Windows Theme

2014-04-18 Thread Anthony Petrov
Hi Alexey, With this change, property win.xpstyle.themeActive change is fired on the toolkit thread Is it possible to install a change listener for this property from user code, and hence eventually allow executing some user code on the toolkit thread with your fix? -- best regards,

Re: AWT Dev [9] Review request for 8014754: [TEST_BUG] child.exe remains after execution java/awt/dnd/ Win32TYMEDSelectionTest and Win32DropTYMEDSelectionTest

2014-04-18 Thread Anthony Petrov
Hi Oleg, We don't want to add binary files to the open repository. If you can only add the source code to it and make it compile itself upon test execution, then it is fine. But the .exe file itself should not be pushed to the repo. -- best regards, Anthony On 4/18/2014 6:13 PM, Oleg

Re: AWT Dev Swing Dev [9] Review request for JDK-8039383: NPE when changing Windows Theme

2014-04-18 Thread Anthony Petrov
:02, Anthony Petrov wrote: Hi Alexey, With this change, property win.xpstyle.themeActive change is fired on the toolkit thread Is it possible to install a change listener for this property from user code, and hence eventually allow executing some user code on the toolkit thread with your fix

  1   2   3   4   5   6   7   8   9   10   >