From petr.pchelko at oracle.com Tue Jul 1 08:17:12 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Tue, 1 Jul 2014 12:17:12 +0400 Subject: JDK 9 RFR of JDK-8043550 : Fix raw and unchecked lint warnings in javax.swing.* In-Reply-To: <53B18E62.9030306@oracle.com> References: <53B18E62.9030306@oracle.com> Message-ID: Hello, Joe. It's hard to understand what to review and what not to review. Could you please generate a separate webrev for the changes that needs to be reviewed next time? I've looked only to the javax.swing package, so I'm not sure I've reviewed everything that needed to be reviewed. 1. JComboBox: 1983 - no need to suppress warning 2. JComponent: 4121 - the change is incorrect. Value can be not an instance of Set. It depends on the property name. See line 4124 where it's cast to Boolean 3. SpinnerNumberModel: 90 - There's a typo in the comment with braces. Also, could you please clarify what do you mean under "awkward to use"? With best regards. Petr. On 30 ???? 2014 ?., at 20:20, Joe Darcy wrote: > Hello, > > Please review the final batch of changes to resolve all the unchecked and rawtypes warnings in swing: > > JDK-8043550 : Fix raw and unchecked lint warnings in javax.swing.* > http://cr.openjdk.java.net/~darcy/8043550.0/ > > For completeness, this webrev also includes the in-progress changes for > > 8043548: Fix raw and unchecked lint warnings in javax.swing.plaf.* > 8042849: Fix raw and unchecked warnings in com.sun.java.swing > > For 8043548, there is still some review work going on to sort out some of the details; 8042849 has been approved, but not pushed yet as it could conceivably need updating based on other changes in swing. > > It was not immediately clear how javax.swing.tree.TreeNode.children(), which returns a raw Enumeration, should be generified. I changed it to > > Enumeration children(); > > and that seems to work fine. Something like > > Enumeration > > with a covariant override would save a few casts in a private implementation, but generally doesn't seem to be a good trade-off since many normal clients could be inconvenienced dealing with the wildcard. > > How to best generify the field javax.swing.KeyboardManager.containerMap was not immediately clear either. The documentation implies the nested Hashtable could be something like a Hashtable > > 68 /** > 69 * maps top-level containers to a sub-hashtable full of keystrokes > 70 */ > 71 Hashtable> containerMap = new Hashtable<>(); > > but that doesn't work out throughout the entire file since there is code that add entries using a Class object as the key. In the end, I just used the not-very-precise Hashtable. > > Thanks, > > -Joe From anton.tarasov at oracle.com Tue Jul 1 15:22:49 2014 From: anton.tarasov at oracle.com (Anton V. Tarasov) Date: Tue, 01 Jul 2014 19:22:49 +0400 Subject: [9] Review Request: 8048887 SortingFocusTraversalPolicy throws IllegalArgumentException from the sort method Message-ID: <53B2D249.40307@oracle.com> Hello, Please review a fix: bug: https://bugs.openjdk.java.net/browse/JDK-8048887 webrev: http://cr.openjdk.java.net/~ant/JDK-8048887/webrev.0 The problem is that SortingFocusTraversalPolicy uses ROW_TOLERANCE conception to alter a disposition of components in a focus cycle for the sake of visually more appropriate traversal order. This however breaks the transitivity rule, which in case of using the default tim-sort algo leads to an exception. We've got a number of complaints filed against this issue, so I eventually agreed to use reflection as suggested in JDK-7075600. I've tested performance in the following way. In a jframe I was adding up to 10.000 components a) at random location (with frame's null Layout) so that to completely untie traversal order from container order (hard case for the sort), and b) sequentially, so that to have the traversal order pre-sorted. Then I counted time spent in the sorting procedure. The results of the legacy merge-sort and the default tim-sort were pretty close. So, the fallback to the legacy sorting algo shouldn't hit performance for Swing. Just for the case of any unpredictable issue (and for the testing purpose), I left an ability to switch to the default tim-sort via setting the (undocumented) "swing.legacySortingFTPEnabled" property to false. Regards, Anton. From steve.sides at oracle.com Tue Jul 1 15:50:47 2014 From: steve.sides at oracle.com (Steve Sides) Date: Tue, 01 Jul 2014 08:50:47 -0700 Subject: Review Request for 8042284: Add block tags for @return and @param to swing plaf classes Message-ID: <53B2D8D7.2000504@oracle.com> ------------------------------------------------------------------------ Hello, Could you please review the fix for the following bug: https://bugs.openjdk.java.net/browse/JDK-8042284 Webrev corresponding: http://cr.openjdk.java.net/~ssides/8042284/8042284.3/ This addresses missing @parm and @return block tags in javadoc for javax/swing/plaf classes as noted by doclint. It does not address methods which are missing javadoc comment altogether, of which there are several. thanks, -steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.sides at oracle.com Tue Jul 1 15:52:43 2014 From: steve.sides at oracle.com (Steve Sides) Date: Tue, 01 Jul 2014 08:52:43 -0700 Subject: Review request for JDK-8046590 fix doclint issues in swing classes, part 1 of 4 In-Reply-To: <53A51204.4040507@oracle.com> References: <53A221F9.2070507@oracle.com> <53A51204.4040507@oracle.com> Message-ID: <53B2D94B.9010905@oracle.com> Hello, A reminder,...could you please review the fix for the following bug: https://bugs.openjdk.java.net/browse/JDK-8046590 Webrev corresponding: http://cr.openjdk.java.net/~ssides/8046590/8046590.3/ This addresses missing @parm and @return block tags in javadoc for javax/swing classes as noted by doclint and some reformatting. thanks, -steve On 6/20/2014 10:03 PM, Steve Sides wrote: > > On 6/19/2014 12:17 AM, Petr Pchelko wrote: >> Hello, Steve. >> >> A couple of comments: >> >> 1. CellRendererPane:192 - I've never seen that we write one-liner >> javadoc. >> May be it's better to split it into 3 lines to conform to the >> common pattern? > I think I borrowed that from existing in JFrame. I put it in several > places....changed them to 3 lines. > >> 2. DefaultDesktopManager:480 - "iconifyFrame()" is definetely a >> candidate to add @code tag >> line 603 - you have an extra space before "the" >> 3. InputMap:78 - extra space > These were actually intentional after I read on Stephen Colbournes > blog on Javadoc coding standards noted 2 spaces after param name, so I > checked and noticed all the @param samples on "How to Write Doc > Comments for the Javadoc Tool" also had 2 spaces (or more) after the > param name. > However, I changed the above to 1 for consistency. >> line 91: the javadoc comment "an Object" is quite useless. You >> could add something like "an action map key" >> 4. JEditorPane: 1256 as you are updating the doc for this method, >> could you please also update this line to also use @code >> 5. JFileChooser:2005 the one-liner javadoc >> 6. JMenu: 764 strange alignment of the block. > > all other noted issues addressed, > http://cr.openjdk.java.net/~ssides/8046590/8046590.3/ > > -steve > >> >> With best regards. Petr. >> >> On 19 ???? 2014 ?., at 3:34, Steve Sides wrote: >> >>> Hello, >>> >>> Could you please review the fix for the following bug: >>> https://bugs.openjdk.java.net/browse/JDK-8046590 >>> >>> Webrev corresponding: (there were a couple typos in rev 1) >>> http://cr.openjdk.java.net/~ssides/8046590/8046590.2/ >>> >>> This addresses missing @parm and @return block tags in javadoc for >>> javax/swing classes as noted by doclint and some reformatting. >>> >>> thanks, >>> >>> -steve >>> > From steve.sides at oracle.com Tue Jul 1 15:53:04 2014 From: steve.sides at oracle.com (Steve Sides) Date: Tue, 01 Jul 2014 08:53:04 -0700 Subject: Review request for JDK-8046597 fix doclint issues in swing classes, part 4 of 4 Message-ID: <53B2D960.4050600@oracle.com> Hello, Could you please review the fix for the following bug: https://bugs.openjdk.java.net/browse/JDK-8046597 Webrev corresponding: http://cr.openjdk.java.net/~ssides/8046597/ These changes address doclint missing tag and comment issues. thanks, -steve From joe.darcy at oracle.com Tue Jul 1 16:22:45 2014 From: joe.darcy at oracle.com (Joe Darcy) Date: Tue, 01 Jul 2014 09:22:45 -0700 Subject: JDK 9 RFR of JDK-8043550 : Fix raw and unchecked lint warnings in javax.swing.* In-Reply-To: References: <53B18E62.9030306@oracle.com> Message-ID: <53B2E055.4030405@oracle.com> Hi Petr, On 07/01/2014 01:17 AM, Petr Pchelko wrote: > Hello, Joe. > > It's hard to understand what to review and what not to review. Could you please generate a separate webrev for the changes that needs to be reviewed next time? > I've looked only to the javax.swing package, so I'm not sure I've reviewed everything that needed to be reviewed. > > 1. JComboBox: 1983 - no need to suppress warning Unnecessary suppression removed. > 2. JComponent: 4121 - the change is incorrect. Value can be not an instance of Set. It depends on the property name. See line 4124 where it's cast to Boolean Noted; I've changed this to have a declaration of strokeSet in each of the if block where the unchecked cast used to occur. (Is is correct that this code is using "==" rather than ".equals" to compare strings? If .equals were correct, I would change this method to use strings in switch.) > 3. SpinnerNumberModel: 90 - There's a typo in the comment with braces. Also, could you please clarify what do you mean under "awkward to use"? Typo fixed. The actual Comparable mins and max people are likely to pass in are values of type java.lang.Double, java.lang.Integer, etc. Such types are correctly declared as Comparable to themselves: public final class Double extends Number implements Comparable {...} public final class Integer extends Number implements Comparable {...} This means that in the class for Double, there are two compareTo methods, one that takes a Double argument and one that takes an Object argument; the latter is the bridge method for the former. Of note is that there is *not* a compareTo method taking a Number as an argument. The Number type is a bit misnamed as an abstraction; it just means "convertible to primitive." Therefore, two arbitrary Number types are not mutually Comparable so it is sensible that Double doesn't have a compareTo bridge method for Number. If the minimum and maximum values were declared as Comparable with the aim of comparing two Number instances with them, in practice that would mean calling a compareTo(Number) method which doesn't exist. In that sense, it would be awkward to use Comparable ;-) (This degree of explanation struck me as overkill for a comment, but I can work on adding something along these lines if you think it would be helpful to future readers of the code.) The changes in javax.swing.tree and javax.swing.undo are new in this request. Thanks, -Joe > > With best regards. Petr. > > On 30 ???? 2014 ?., at 20:20, Joe Darcy wrote: > >> Hello, >> >> Please review the final batch of changes to resolve all the unchecked and rawtypes warnings in swing: >> >> JDK-8043550 : Fix raw and unchecked lint warnings in javax.swing.* >> http://cr.openjdk.java.net/~darcy/8043550.0/ >> >> For completeness, this webrev also includes the in-progress changes for >> >> 8043548: Fix raw and unchecked lint warnings in javax.swing.plaf.* >> 8042849: Fix raw and unchecked warnings in com.sun.java.swing >> >> For 8043548, there is still some review work going on to sort out some of the details; 8042849 has been approved, but not pushed yet as it could conceivably need updating based on other changes in swing. >> >> It was not immediately clear how javax.swing.tree.TreeNode.children(), which returns a raw Enumeration, should be generified. I changed it to >> >> Enumeration children(); >> >> and that seems to work fine. Something like >> >> Enumeration >> >> with a covariant override would save a few casts in a private implementation, but generally doesn't seem to be a good trade-off since many normal clients could be inconvenienced dealing with the wildcard. >> >> How to best generify the field javax.swing.KeyboardManager.containerMap was not immediately clear either. The documentation implies the nested Hashtable could be something like a Hashtable >> >> 68 /** >> 69 * maps top-level containers to a sub-hashtable full of keystrokes >> 70 */ >> 71 Hashtable> containerMap = new Hashtable<>(); >> >> but that doesn't work out throughout the entire file since there is code that add entries using a Class object as the key. In the end, I just used the not-very-precise Hashtable. >> >> Thanks, >> >> -Joe From alexander.potochkin at oracle.com Tue Jul 1 19:26:14 2014 From: alexander.potochkin at oracle.com (Alexander Potochkin) Date: Tue, 01 Jul 2014 23:26:14 +0400 Subject: [9] Review request for JDK-8041982 Use of animated icon in JLayer causes CPU spin Message-ID: <53B30B56.7070703@oracle.com> Hello Please review the fix the the following RFE: https://bugs.openjdk.java.net/browse/JDK-8041982 JLayer/LayerUI classes don't currently allow to override the imageUpate() method to control the specific cases involved animated gif images. The proposed API change provides the required API for JDK9 http://cr.openjdk.java.net/~alexp/8041982/webrev.00/ The request to the public API change will be filed after the technical review Thanks alexp From petr.pchelko at oracle.com Tue Jul 1 20:51:41 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Wed, 2 Jul 2014 00:51:41 +0400 Subject: JDK 9 RFR of JDK-8043550 : Fix raw and unchecked lint warnings in javax.swing.* In-Reply-To: <53B2E055.4030405@oracle.com> References: <53B18E62.9030306@oracle.com> <53B2E055.4030405@oracle.com> Message-ID: <3F0A10E2-64A1-46B2-B141-7530F3D95F73@oracle.com> Hello, Joe. > (Is is correct that this code is using "==" rather than ".equals" to compare strings? If .equals were correct, I would change this method to use strings in switch.) Interesting question. The history of this code is lost 10 years ago, so I don?t know why == is used here instead of equals. Just looking at the code I do not see any real reason to use ==, so I would say it?s a bug. So I would say we can replace it with switch. > (This degree of explanation struck me as overkill for a comment, but I can work on adding something along these lines if you think it would be helpful to future readers of the code.) Thank you for the detailed explanation, could you please make the comment slightly more explanatory? I think that adding the info that Number subclasses are not comparable with each other as Numbers would be enough. > The changes in javax.swing.tree and javax.swing.undo are new in this request. I?ve looked at these too, no new comments about them. Thank you. With best regards. Petr. > On Jul 1, 2014, at 8:22 PM, Joe Darcy wrote: > > Hi Petr, > > On 07/01/2014 01:17 AM, Petr Pchelko wrote: >> Hello, Joe. >> >> It's hard to understand what to review and what not to review. Could you please generate a separate webrev for the changes that needs to be reviewed next time? >> I've looked only to the javax.swing package, so I'm not sure I've reviewed everything that needed to be reviewed. >> >> 1. JComboBox: 1983 - no need to suppress warning > > Unnecessary suppression removed. > >> 2. JComponent: 4121 - the change is incorrect. Value can be not an instance of Set. It depends on the property name. See line 4124 where it's cast to Boolean > > Noted; I've changed this to have a declaration of strokeSet in each of the if block where the unchecked cast used to occur. > > (Is is correct that this code is using "==" rather than ".equals" to compare strings? If .equals were correct, I would change this method to use strings in switch.) > >> 3. SpinnerNumberModel: 90 - There's a typo in the comment with braces. Also, could you please clarify what do you mean under "awkward to use"? > > Typo fixed. > > The actual Comparable mins and max people are likely to pass in are values of type java.lang.Double, java.lang.Integer, etc. Such types are correctly declared as Comparable to themselves: > > public final class Double extends Number implements Comparable {...} > > public final class Integer extends Number implements Comparable {...} > > This means that in the class for Double, there are two compareTo methods, one that takes a Double argument and one that takes an Object argument; the latter is the bridge method for the former. Of note is that there is *not* a compareTo method taking a Number as an argument. > > The Number type is a bit misnamed as an abstraction; it just means "convertible to primitive." Therefore, two arbitrary Number types are not mutually Comparable so it is sensible that Double doesn't have a compareTo bridge method for Number. > > If the minimum and maximum values were declared as Comparable with the aim of comparing two Number instances with them, in practice that would mean calling a compareTo(Number) method which doesn't exist. In that sense, it would be awkward to use Comparable ;-) > > (This degree of explanation struck me as overkill for a comment, but I can work on adding something along these lines if you think it would be helpful to future readers of the code.) > > The changes in javax.swing.tree and javax.swing.undo are new in this request. > > Thanks, > > -Joe > >> >> With best regards. Petr. >> >> On 30 ???? 2014 ?., at 20:20, Joe Darcy wrote: >> >>> Hello, >>> >>> Please review the final batch of changes to resolve all the unchecked and rawtypes warnings in swing: >>> >>> JDK-8043550 : Fix raw and unchecked lint warnings in javax.swing.* >>> http://cr.openjdk.java.net/~darcy/8043550.0/ >>> >>> For completeness, this webrev also includes the in-progress changes for >>> >>> 8043548: Fix raw and unchecked lint warnings in javax.swing.plaf.* >>> 8042849: Fix raw and unchecked warnings in com.sun.java.swing >>> >>> For 8043548, there is still some review work going on to sort out some of the details; 8042849 has been approved, but not pushed yet as it could conceivably need updating based on other changes in swing. >>> >>> It was not immediately clear how javax.swing.tree.TreeNode.children(), which returns a raw Enumeration, should be generified. I changed it to >>> >>> Enumeration children(); >>> >>> and that seems to work fine. Something like >>> >>> Enumeration >>> >>> with a covariant override would save a few casts in a private implementation, but generally doesn't seem to be a good trade-off since many normal clients could be inconvenienced dealing with the wildcard. >>> >>> How to best generify the field javax.swing.KeyboardManager.containerMap was not immediately clear either. The documentation implies the nested Hashtable could be something like a Hashtable >>> >>> 68 /** >>> 69 * maps top-level containers to a sub-hashtable full of keystrokes >>> 70 */ >>> 71 Hashtable> containerMap = new Hashtable<>(); >>> >>> but that doesn't work out throughout the entire file since there is code that add entries using a Class object as the key. In the end, I just used the not-very-precise Hashtable. >>> >>> Thanks, >>> >>> -Joe > From petr.pchelko at oracle.com Wed Jul 2 07:54:05 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Wed, 2 Jul 2014 11:54:05 +0400 Subject: Review request for JDK-8046590 fix doclint issues in swing classes, part 1 of 4 In-Reply-To: <53B2D94B.9010905@oracle.com> References: <53A221F9.2070507@oracle.com> <53A51204.4040507@oracle.com> <53B2D94B.9010905@oracle.com> Message-ID: Hello, Steve. Looks good to me. With best regards. Petr. On 01 ???? 2014 ?., at 19:52, Steve Sides wrote: > Hello, > > A reminder,...could you please review the fix for the following bug: > https://bugs.openjdk.java.net/browse/JDK-8046590 > > Webrev corresponding: > http://cr.openjdk.java.net/~ssides/8046590/8046590.3/ > > This addresses missing @parm and @return block tags in javadoc for > javax/swing classes as noted by doclint and some reformatting. > > thanks, > > -steve > > > On 6/20/2014 10:03 PM, Steve Sides wrote: >> >> On 6/19/2014 12:17 AM, Petr Pchelko wrote: >>> Hello, Steve. >>> >>> A couple of comments: >>> >>> 1. CellRendererPane:192 - I've never seen that we write one-liner javadoc. >>> May be it's better to split it into 3 lines to conform to the common pattern? >> I think I borrowed that from existing in JFrame. I put it in several places....changed them to 3 lines. >> >>> 2. DefaultDesktopManager:480 - "iconifyFrame()" is definetely a candidate to add @code tag >>> line 603 - you have an extra space before "the" >>> 3. InputMap:78 - extra space >> These were actually intentional after I read on Stephen Colbournes blog on Javadoc coding standards noted 2 spaces after param name, so I checked and noticed all the @param samples on "How to Write Doc Comments for the Javadoc Tool" also had 2 spaces (or more) after the param name. >> However, I changed the above to 1 for consistency. >>> line 91: the javadoc comment "an Object" is quite useless. You could add something like "an action map key" >>> 4. JEditorPane: 1256 as you are updating the doc for this method, could you please also update this line to also use @code >>> 5. JFileChooser:2005 the one-liner javadoc >>> 6. JMenu: 764 strange alignment of the block. >> >> all other noted issues addressed, >> http://cr.openjdk.java.net/~ssides/8046590/8046590.3/ >> >> -steve >> >>> >>> With best regards. Petr. >>> >>> On 19 ???? 2014 ?., at 3:34, Steve Sides wrote: >>> >>>> Hello, >>>> >>>> Could you please review the fix for the following bug: >>>> https://bugs.openjdk.java.net/browse/JDK-8046590 >>>> >>>> Webrev corresponding: (there were a couple typos in rev 1) >>>> http://cr.openjdk.java.net/~ssides/8046590/8046590.2/ >>>> >>>> This addresses missing @parm and @return block tags in javadoc for >>>> javax/swing classes as noted by doclint and some reformatting. >>>> >>>> thanks, >>>> >>>> -steve >>>> >> > From petr.pchelko at oracle.com Wed Jul 2 07:57:44 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Wed, 2 Jul 2014 11:57:44 +0400 Subject: Review request for JDK-8046597 fix doclint issues in swing classes, part 4 of 4 In-Reply-To: <53B2D960.4050600@oracle.com> References: <53B2D960.4050600@oracle.com> Message-ID: Hello, Steve. JTextField - wrong formatting of the @return tag Otherwise the fix looks good, no need for a new webrev, just fix the formatting before the push. With best regards. Petr. On 01 ???? 2014 ?., at 19:53, Steve Sides wrote: > Hello, > > Could you please review the fix for the following bug: > https://bugs.openjdk.java.net/browse/JDK-8046597 > > Webrev corresponding: > http://cr.openjdk.java.net/~ssides/8046597/ > > These changes address doclint missing tag and comment issues. > > thanks, > > -steve > From alexander.zvegintsev at oracle.com Wed Jul 2 10:53:51 2014 From: alexander.zvegintsev at oracle.com (Alexander Zvegintsev) Date: Wed, 02 Jul 2014 14:53:51 +0400 Subject: [9] Review Request: 8048887 SortingFocusTraversalPolicy throws IllegalArgumentException from the sort method In-Reply-To: <53B2D249.40307@oracle.com> References: <53B2D249.40307@oracle.com> Message-ID: <53B3E4BF.30106@oracle.com> Hi Anton, the fix looks good to me. BTW you can use GetBooleanAction instead of GetPropertyAction. Thanks, Alexander. On 07/01/2014 07:22 PM, Anton V. Tarasov wrote: > Hello, > > Please review a fix: > > bug: https://bugs.openjdk.java.net/browse/JDK-8048887 > webrev: http://cr.openjdk.java.net/~ant/JDK-8048887/webrev.0 > > The problem is that SortingFocusTraversalPolicy uses ROW_TOLERANCE > conception to alter a disposition of components in a focus cycle for > the sake of visually more appropriate traversal order. This however > breaks the transitivity rule, which in case of using the default > tim-sort algo leads to an exception. > > We've got a number of complaints filed against this issue, so I > eventually agreed to use reflection as suggested in JDK-7075600. > > I've tested performance in the following way. In a jframe I was adding > up to 10.000 components a) at random location (with frame's null > Layout) so that to completely untie traversal order from container > order (hard case for the sort), and b) sequentially, so that to have > the traversal order pre-sorted. Then I counted time spent in the > sorting procedure. The results of the legacy merge-sort and the > default tim-sort were pretty close. So, the fallback to the legacy > sorting algo shouldn't hit performance for Swing. > > Just for the case of any unpredictable issue (and for the testing > purpose), I left an ability to switch to the default tim-sort via > setting the (undocumented) "swing.legacySortingFTPEnabled" property to > false. > > Regards, > Anton. From alexander.zvegintsev at oracle.com Wed Jul 2 11:06:19 2014 From: alexander.zvegintsev at oracle.com (Alexander Zvegintsev) Date: Wed, 02 Jul 2014 15:06:19 +0400 Subject: [9] Review Request: 8048887 SortingFocusTraversalPolicy throws IllegalArgumentException from the sort method In-Reply-To: <53B3E4BF.30106@oracle.com> References: <53B2D249.40307@oracle.com> <53B3E4BF.30106@oracle.com> Message-ID: <53B3E7AB.1000404@oracle.com> Disregard my comment about GetBooleanAction, it does not have default value. Thanks, Alexander. On 07/02/2014 02:53 PM, Alexander Zvegintsev wrote: > Hi Anton, > > the fix looks good to me. > BTW you can use GetBooleanAction instead of GetPropertyAction. > > > Thanks, > > Alexander. > > On 07/01/2014 07:22 PM, Anton V. Tarasov wrote: >> Hello, >> >> Please review a fix: >> >> bug: https://bugs.openjdk.java.net/browse/JDK-8048887 >> webrev: http://cr.openjdk.java.net/~ant/JDK-8048887/webrev.0 >> >> The problem is that SortingFocusTraversalPolicy uses ROW_TOLERANCE >> conception to alter a disposition of components in a focus cycle for >> the sake of visually more appropriate traversal order. This however >> breaks the transitivity rule, which in case of using the default >> tim-sort algo leads to an exception. >> >> We've got a number of complaints filed against this issue, so I >> eventually agreed to use reflection as suggested in JDK-7075600. >> >> I've tested performance in the following way. In a jframe I was >> adding up to 10.000 components a) at random location (with frame's >> null Layout) so that to completely untie traversal order from >> container order (hard case for the sort), and b) sequentially, so >> that to have the traversal order pre-sorted. Then I counted time >> spent in the sorting procedure. The results of the legacy merge-sort >> and the default tim-sort were pretty close. So, the fallback to the >> legacy sorting algo shouldn't hit performance for Swing. >> >> Just for the case of any unpredictable issue (and for the testing >> purpose), I left an ability to switch to the default tim-sort via >> setting the (undocumented) "swing.legacySortingFTPEnabled" property >> to false. >> >> Regards, >> Anton. > From anton.tarasov at oracle.com Wed Jul 2 13:06:48 2014 From: anton.tarasov at oracle.com (Anton V. Tarasov) Date: Wed, 02 Jul 2014 17:06:48 +0400 Subject: [9] Review Request: 8048887 SortingFocusTraversalPolicy throws IllegalArgumentException from the sort method In-Reply-To: <53B3E7AB.1000404@oracle.com> References: <53B2D249.40307@oracle.com> <53B3E4BF.30106@oracle.com> <53B3E7AB.1000404@oracle.com> Message-ID: <53B403E8.6060007@oracle.com> Ok, thanks for the review! Anton. On 02.07.2014 15:06, Alexander Zvegintsev wrote: > Disregard my comment about GetBooleanAction, it does not have default value. > > Thanks, > > Alexander. > > On 07/02/2014 02:53 PM, Alexander Zvegintsev wrote: >> Hi Anton, >> >> the fix looks good to me. >> BTW you can use GetBooleanAction instead of GetPropertyAction. >> >> >> Thanks, >> >> Alexander. >> >> On 07/01/2014 07:22 PM, Anton V. Tarasov wrote: >>> Hello, >>> >>> Please review a fix: >>> >>> bug: https://bugs.openjdk.java.net/browse/JDK-8048887 >>> webrev: http://cr.openjdk.java.net/~ant/JDK-8048887/webrev.0 >>> >>> The problem is that SortingFocusTraversalPolicy uses ROW_TOLERANCE conception to alter a >>> disposition of components in a focus cycle for the sake of visually more appropriate traversal >>> order. This however breaks the transitivity rule, which in case of using the default tim-sort >>> algo leads to an exception. >>> >>> We've got a number of complaints filed against this issue, so I eventually agreed to use >>> reflection as suggested in JDK-7075600. >>> >>> I've tested performance in the following way. In a jframe I was adding up to 10.000 components >>> a) at random location (with frame's null Layout) so that to completely untie traversal order >>> from container order (hard case for the sort), and b) sequentially, so that to have the >>> traversal order pre-sorted. Then I counted time spent in the sorting procedure. The results of >>> the legacy merge-sort and the default tim-sort were pretty close. So, the fallback to the legacy >>> sorting algo shouldn't hit performance for Swing. >>> >>> Just for the case of any unpredictable issue (and for the testing purpose), I left an ability to >>> switch to the default tim-sort via setting the (undocumented) "swing.legacySortingFTPEnabled" >>> property to false. >>> >>> Regards, >>> Anton. >> > From alexey.ivanov at oracle.com Wed Jul 2 13:28:01 2014 From: alexey.ivanov at oracle.com (Alexey Ivanov) Date: Wed, 02 Jul 2014 17:28:01 +0400 Subject: [9] Review request for JDK-8046559: NPE when changing Windows theme Message-ID: <53B408E1.70008@oracle.com> Hi AWT, Swing teams, Could you please review the fix to JDK-8046559 for jdk9: bug: https://bugs.openjdk.java.net/browse/JDK-8046559 webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.00/ Problem description: When changing Windows themes from a theme with visual styles (Windows Aero or Windows Basic) to a classic one, NullPointerException could be thrown from Swing code during component tree validation, or InternalError could be thrown during component painting. Root cause: Windows theme data are accessed via XPStyle and ThemeReader. When the theme is switched to a classic one, theme handles become unavailable, and theme data cannot be accessed any more. The change in theme is posted to EDT; at the same time, the UI often needs to repaint before the theme change is completely handled in Swing. This leads to NPE and InternalError as the code tries to access the data that has become unavailable. The fix: Windows desktop properties are updated right on Windows Toolkit thread, and the value of "win.xpstyle.themeActive" is stored in ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop properties are delivered either synchronously on EDT or asynchronously via DesktopPropertyChangeSupport, as it used to be. Getters in XPStyle class check for null values and return dummy defaults if ThemeReader returned null. SkinPainters also check whether theming is still available before asking ThemeReader to paint. Access to XPStyle.xp instance is blocked as soon as user switches themes. The object will be cleaned when the corresponding PropertyChangeEvent is handled by Swing. This new version of the fix addresses issues found with the initial submission of JDK-8039383 fix: - JDK-8046239: Build failure in 9-client on all non-Windows platforms - JDK-8046391: Hang displaying JFileChooser with Windows L&F See also http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ Regression test: No regression test is provided due to its complexity. Whether NullPointerException or InternalError are thrown depends on the order of event handling, sometimes exceptions do not occur when changing theme of visual styles enabled theme to a classic theme. I included regression test for hang in JFileChooser, JDK-8046391. Thank you, Alexey. From alexandr.scherbatiy at oracle.com Wed Jul 2 14:43:41 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Wed, 02 Jul 2014 18:43:41 +0400 Subject: [9] Review Request: 8048887 SortingFocusTraversalPolicy throws IllegalArgumentException from the sort method In-Reply-To: <53B2D249.40307@oracle.com> References: <53B2D249.40307@oracle.com> Message-ID: <53B41A9D.9060504@oracle.com> The fix looks good to me. Thanks, Alexandr. On 7/1/2014 7:22 PM, Anton V. Tarasov wrote: > Hello, > > Please review a fix: > > bug: https://bugs.openjdk.java.net/browse/JDK-8048887 > webrev: http://cr.openjdk.java.net/~ant/JDK-8048887/webrev.0 > > The problem is that SortingFocusTraversalPolicy uses ROW_TOLERANCE > conception to alter a disposition of components in a focus cycle for > the sake of visually more appropriate traversal order. This however > breaks the transitivity rule, which in case of using the default > tim-sort algo leads to an exception. > > We've got a number of complaints filed against this issue, so I > eventually agreed to use reflection as suggested in JDK-7075600. > > I've tested performance in the following way. In a jframe I was adding > up to 10.000 components a) at random location (with frame's null > Layout) so that to completely untie traversal order from container > order (hard case for the sort), and b) sequentially, so that to have > the traversal order pre-sorted. Then I counted time spent in the > sorting procedure. The results of the legacy merge-sort and the > default tim-sort were pretty close. So, the fallback to the legacy > sorting algo shouldn't hit performance for Swing. > > Just for the case of any unpredictable issue (and for the testing > purpose), I left an ability to switch to the default tim-sort via > setting the (undocumented) "swing.legacySortingFTPEnabled" property to > false. > > Regards, > Anton. From anton.nashatyrev at oracle.com Wed Jul 2 15:02:24 2014 From: anton.nashatyrev at oracle.com (anton nashatyrev) Date: Wed, 02 Jul 2014 19:02:24 +0400 Subject: [9] Review request for 8044371: setOneTouchExpandable functionality of JSplitPane will reduce vertical Scrollbar In-Reply-To: <53AADB6B.8030100@oracle.com> References: <53A9A7DF.8070508@oracle.com> <53AACAB0.1060905@oracle.com> <53AAD071.1060100@oracle.com> <53AADB6B.8030100@oracle.com> Message-ID: <53B41F00.3060002@oracle.com> Hi Alexander, thanks for review! is there another volunteer? Thanks! Anton. On 25.06.2014 18:23, Alexander Scherbatiy wrote: > > The fix looks good to me. > > Thanks, > Alexandr. > > On 6/25/2014 5:36 PM, anton nashatyrev wrote: >> Hi Alexander, >> >> this works on the current testcase. >> What makes me more confident is that before the fix JDK-4502121 a >> negative dimension was also possible and the methods you mentioned >> might be called with such values. It seems the class didn't changed >> dramatically since that time. >> >> Thanks! >> Anton. >> >> On 25.06.2014 17:12, Alexander Scherbatiy wrote: >>> >>> Removing isEmpty variable checking logic leads that some methods >>> (adjustForVSB(...), viewport.toViewCoordinates(...)) could use a >>> rectangle with negative sizes. >>> Do these methods work properly in this case? >>> >>> Thanks, >>> Alexandr. >>> >>> On 6/24/2014 8:31 PM, anton nashatyrev wrote: >>>> Hello, >>>> could you please review the following fix: >>>> >>>> fix: http://cr.openjdk.java.net/~anashaty/8044371/9/webrev.00/ >>>> >>>> bug: https://bugs.openjdk.java.net/browse/JDK-8044371 >>>> >>>> Problem: >>>> After the ScrollPane which is scrolled to the bottom resized to >>>> the width 0 and then back its vertical scroll position changes. >>>> >>>> Evaluation: >>>> this is the regression from the fix JDK-4502121 >>>> . >>>> When the viewport size is 0 the >>>> ScrollPaneLayout.layoutContainer decides not to paint/layout the >>>> scrollbars and the viewport height is calculated with no respect to >>>> horizontal scrollbar height. The viewport height thus becomes >>>> larger and its position shifts 25 pixels (the height of the >>>> horisontal scrollbar) up. The expand action doesn't revert the >>>> position which is a normal behavior. >>>> >>>> Fix: >>>> modify the fix for JDK-4502121 >>>> , so it still >>>> solves the original problem, but doesn't add the unwanted behavior: >>>> the layout should take into account the scrollbars even if the size >>>> of the scrollpane is 0. >>>> >>>> Thanks! >>>> Anton. >>> >> > From stuart.marks at oracle.com Wed Jul 2 22:31:54 2014 From: stuart.marks at oracle.com (Stuart Marks) Date: Wed, 02 Jul 2014 15:31:54 -0700 Subject: [9] Review Request: 8047025 Fix raw and unchecked lint warnings in generated nimbus files Message-ID: <53B4885A.4080607@oracle.com> Hi all, Please review this change for 8047025, "Fix raw and unchecked lint warnings in generated nimbus files." Webrev: http://cr.openjdk.java.net/~smarks/reviews/8047025/webrev.0/ Bug: https://bugs.openjdk.java.net/browse/JDK-8047025 Although this change modifies only a few lines of template files, it removes 31 raw and unchecked lint warnings. I've done a build with the changes in place, and I've also run SwingSet2 and switched it to the Nimbus L&F and it looked fine to me. Please let me know if I should do additional testing. Thanks, s'marks From henry.jen at oracle.com Wed Jul 2 23:47:09 2014 From: henry.jen at oracle.com (Henry Jen) Date: Wed, 02 Jul 2014 16:47:09 -0700 Subject: [9] Review Request: 8047025 Fix raw and unchecked lint warnings in generated nimbus files In-Reply-To: <53B4885A.4080607@oracle.com> References: <53B4885A.4080607@oracle.com> Message-ID: <53B499FD.90904@oracle.com> Looks good to me. Cheers, Henry On 07/02/2014 03:31 PM, Stuart Marks wrote: > Hi all, > > Please review this change for 8047025, "Fix raw and unchecked lint > warnings in generated nimbus files." > > Webrev: > > http://cr.openjdk.java.net/~smarks/reviews/8047025/webrev.0/ > > Bug: > > https://bugs.openjdk.java.net/browse/JDK-8047025 > > Although this change modifies only a few lines of template files, it > removes 31 raw and unchecked lint warnings. > > I've done a build with the changes in place, and I've also run SwingSet2 > and switched it to the Nimbus L&F and it looked fine to me. Please let > me know if I should do additional testing. > > Thanks, > > s'marks From alexander.potochkin at oracle.com Thu Jul 3 14:16:34 2014 From: alexander.potochkin at oracle.com (Alexander Potochkin) Date: Thu, 03 Jul 2014 18:16:34 +0400 Subject: [9] Review request for 8044371: setOneTouchExpandable functionality of JSplitPane will reduce vertical Scrollbar In-Reply-To: <53A9A7DF.8070508@oracle.com> References: <53A9A7DF.8070508@oracle.com> Message-ID: <53B565C2.70301@oracle.com> Hello Anton Looks good alexp On 6/24/2014 8:31 PM, anton nashatyrev wrote: > Hello, > could you please review the following fix: > > fix: http://cr.openjdk.java.net/~anashaty/8044371/9/webrev.00/ > > bug: https://bugs.openjdk.java.net/browse/JDK-8044371 > > Problem: > After the ScrollPane which is scrolled to the bottom resized to > the width 0 and then back its vertical scroll position changes. > > Evaluation: > this is the regression from the fix JDK-4502121 > . > When the viewport size is 0 the ScrollPaneLayout.layoutContainer > decides not to paint/layout the scrollbars and the viewport height is > calculated with no respect to horizontal scrollbar height. The > viewport height thus becomes larger and its position shifts 25 pixels > (the height of the horisontal scrollbar) up. The expand action doesn't > revert the position which is a normal behavior. > > Fix: > modify the fix for JDK-4502121 > , so it still solves > the original problem, but doesn't add the unwanted behavior: the > layout should take into account the scrollbars even if the size of the > scrollpane is 0. > > Thanks! > Anton. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandr.scherbatiy at oracle.com Thu Jul 3 14:30:01 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Thu, 03 Jul 2014 18:30:01 +0400 Subject: Review request for JDK-8046590 fix doclint issues in swing classes, part 1 of 4 In-Reply-To: <53B2D94B.9010905@oracle.com> References: <53A221F9.2070507@oracle.com> <53A51204.4040507@oracle.com> <53B2D94B.9010905@oracle.com> Message-ID: <53B568E9.30501@oracle.com> The fix looks good to me. Thanks, Alexandr. On 7/1/2014 7:52 PM, Steve Sides wrote: > Hello, > > A reminder,...could you please review the fix for the following bug: > https://bugs.openjdk.java.net/browse/JDK-8046590 > > Webrev corresponding: > http://cr.openjdk.java.net/~ssides/8046590/8046590.3/ > > This addresses missing @parm and @return block tags in javadoc for > javax/swing classes as noted by doclint and some reformatting. > > thanks, > > -steve > > > On 6/20/2014 10:03 PM, Steve Sides wrote: >> >> On 6/19/2014 12:17 AM, Petr Pchelko wrote: >>> Hello, Steve. >>> >>> A couple of comments: >>> >>> 1. CellRendererPane:192 - I've never seen that we write one-liner >>> javadoc. >>> May be it's better to split it into 3 lines to conform to the >>> common pattern? >> I think I borrowed that from existing in JFrame. I put it in several >> places....changed them to 3 lines. >> >>> 2. DefaultDesktopManager:480 - "iconifyFrame()" is definetely a >>> candidate to add @code tag >>> line 603 - you have an extra space before "the" >>> 3. InputMap:78 - extra space >> These were actually intentional after I read on Stephen Colbournes >> blog on Javadoc coding standards noted 2 spaces after param name, so >> I checked and noticed all the @param samples on "How to Write Doc >> Comments for the Javadoc Tool" also had 2 spaces (or more) after the >> param name. >> However, I changed the above to 1 for consistency. >>> line 91: the javadoc comment "an Object" is quite useless. You >>> could add something like "an action map key" >>> 4. JEditorPane: 1256 as you are updating the doc for this method, >>> could you please also update this line to also use @code >>> 5. JFileChooser:2005 the one-liner javadoc >>> 6. JMenu: 764 strange alignment of the block. >> >> all other noted issues addressed, >> http://cr.openjdk.java.net/~ssides/8046590/8046590.3/ >> >> -steve >> >>> >>> With best regards. Petr. >>> >>> On 19 ???? 2014 ?., at 3:34, Steve Sides >>> wrote: >>> >>>> Hello, >>>> >>>> Could you please review the fix for the following bug: >>>> https://bugs.openjdk.java.net/browse/JDK-8046590 >>>> >>>> Webrev corresponding: (there were a couple typos in rev 1) >>>> http://cr.openjdk.java.net/~ssides/8046590/8046590.2/ >>>> >>>> This addresses missing @parm and @return block tags in javadoc for >>>> javax/swing classes as noted by doclint and some reformatting. >>>> >>>> thanks, >>>> >>>> -steve >>>> >> > From alexandr.scherbatiy at oracle.com Thu Jul 3 14:31:46 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Thu, 03 Jul 2014 18:31:46 +0400 Subject: Review request for JDK-8046597 fix doclint issues in swing classes, part 4 of 4 In-Reply-To: <53B2D960.4050600@oracle.com> References: <53B2D960.4050600@oracle.com> Message-ID: <53B56952.7080208@oracle.com> The fix looks good to me. Thanks, Alexandr. On 7/1/2014 7:53 PM, Steve Sides wrote: > Hello, > > Could you please review the fix for the following bug: > https://bugs.openjdk.java.net/browse/JDK-8046597 > > Webrev corresponding: > http://cr.openjdk.java.net/~ssides/8046597/ > > These changes address doclint missing tag and comment issues. > > thanks, > > -steve > From joe.darcy at oracle.com Thu Jul 3 15:22:00 2014 From: joe.darcy at oracle.com (Joe Darcy) Date: Thu, 03 Jul 2014 08:22:00 -0700 Subject: JDK 9 RFR of JDK-8043550 : Fix raw and unchecked lint warnings in javax.swing.* In-Reply-To: <3F0A10E2-64A1-46B2-B141-7530F3D95F73@oracle.com> References: <53B18E62.9030306@oracle.com> <53B2E055.4030405@oracle.com> <3F0A10E2-64A1-46B2-B141-7530F3D95F73@oracle.com> Message-ID: <53B57518.8090305@oracle.com> Hi Petr, On 07/01/2014 01:51 PM, Petr Pchelko wrote: > Hello, Joe. > >> (Is is correct that this code is using "==" rather than ".equals" to compare strings? If .equals were correct, I would change this method to use strings in switch.) > Interesting question. The history of this code is lost 10 years ago, so I don?t know why == is used here instead of equals. > Just looking at the code I do not see any real reason to use ==, so I would say it?s a bug. So I would say we can replace it with switch. Upon further reflection, I'd prefer the change to using a .equals based comparison being done under a different changeset. Doing so will make it easier to isolate any problems which may arise strictly from generification and warning removal. > >> (This degree of explanation struck me as overkill for a comment, but I can work on adding something along these lines if you think it would be helpful to future readers of the code.) > Thank you for the detailed explanation, could you please make the comment slightly more explanatory? I think that adding the info that Number subclasses are not comparable with each other as Numbers would be enough. Comment expanded. > >> The changes in javax.swing.tree and javax.swing.undo are new in this request. > I?ve looked at these too, no new comments about them. Update webrev: http://cr.openjdk.java.net/~darcy/8043550.1/ Thanks, -Joe > > Thank you. > With best regards. Petr. > >> On Jul 1, 2014, at 8:22 PM, Joe Darcy wrote: >> >> Hi Petr, >> >> On 07/01/2014 01:17 AM, Petr Pchelko wrote: >>> Hello, Joe. >>> >>> It's hard to understand what to review and what not to review. Could you please generate a separate webrev for the changes that needs to be reviewed next time? >>> I've looked only to the javax.swing package, so I'm not sure I've reviewed everything that needed to be reviewed. >>> >>> 1. JComboBox: 1983 - no need to suppress warning >> Unnecessary suppression removed. >> >>> 2. JComponent: 4121 - the change is incorrect. Value can be not an instance of Set. It depends on the property name. See line 4124 where it's cast to Boolean >> Noted; I've changed this to have a declaration of strokeSet in each of the if block where the unchecked cast used to occur. >> >> (Is is correct that this code is using "==" rather than ".equals" to compare strings? If .equals were correct, I would change this method to use strings in switch.) >> >>> 3. SpinnerNumberModel: 90 - There's a typo in the comment with braces. Also, could you please clarify what do you mean under "awkward to use"? >> Typo fixed. >> >> The actual Comparable mins and max people are likely to pass in are values of type java.lang.Double, java.lang.Integer, etc. Such types are correctly declared as Comparable to themselves: >> >> public final class Double extends Number implements Comparable {...} >> >> public final class Integer extends Number implements Comparable {...} >> >> This means that in the class for Double, there are two compareTo methods, one that takes a Double argument and one that takes an Object argument; the latter is the bridge method for the former. Of note is that there is *not* a compareTo method taking a Number as an argument. >> >> The Number type is a bit misnamed as an abstraction; it just means "convertible to primitive." Therefore, two arbitrary Number types are not mutually Comparable so it is sensible that Double doesn't have a compareTo bridge method for Number. >> >> If the minimum and maximum values were declared as Comparable with the aim of comparing two Number instances with them, in practice that would mean calling a compareTo(Number) method which doesn't exist. In that sense, it would be awkward to use Comparable ;-) >> >> (This degree of explanation struck me as overkill for a comment, but I can work on adding something along these lines if you think it would be helpful to future readers of the code.) >> >> The changes in javax.swing.tree and javax.swing.undo are new in this request. >> >> Thanks, >> >> -Joe >> >>> With best regards. Petr. >>> >>> On 30 ???? 2014 ?., at 20:20, Joe Darcy wrote: >>> >>>> Hello, >>>> >>>> Please review the final batch of changes to resolve all the unchecked and rawtypes warnings in swing: >>>> >>>> JDK-8043550 : Fix raw and unchecked lint warnings in javax.swing.* >>>> http://cr.openjdk.java.net/~darcy/8043550.0/ >>>> >>>> For completeness, this webrev also includes the in-progress changes for >>>> >>>> 8043548: Fix raw and unchecked lint warnings in javax.swing.plaf.* >>>> 8042849: Fix raw and unchecked warnings in com.sun.java.swing >>>> >>>> For 8043548, there is still some review work going on to sort out some of the details; 8042849 has been approved, but not pushed yet as it could conceivably need updating based on other changes in swing. >>>> >>>> It was not immediately clear how javax.swing.tree.TreeNode.children(), which returns a raw Enumeration, should be generified. I changed it to >>>> >>>> Enumeration children(); >>>> >>>> and that seems to work fine. Something like >>>> >>>> Enumeration >>>> >>>> with a covariant override would save a few casts in a private implementation, but generally doesn't seem to be a good trade-off since many normal clients could be inconvenienced dealing with the wildcard. >>>> >>>> How to best generify the field javax.swing.KeyboardManager.containerMap was not immediately clear either. The documentation implies the nested Hashtable could be something like a Hashtable >>>> >>>> 68 /** >>>> 69 * maps top-level containers to a sub-hashtable full of keystrokes >>>> 70 */ >>>> 71 Hashtable> containerMap = new Hashtable<>(); >>>> >>>> but that doesn't work out throughout the entire file since there is code that add entries using a Class object as the key. In the end, I just used the not-very-precise Hashtable. >>>> >>>> Thanks, >>>> >>>> -Joe From petr.pchelko at oracle.com Thu Jul 3 15:30:56 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Thu, 3 Jul 2014 19:30:56 +0400 Subject: JDK 9 RFR of JDK-8043550 : Fix raw and unchecked lint warnings in javax.swing.* In-Reply-To: <53B57518.8090305@oracle.com> References: <53B18E62.9030306@oracle.com> <53B2E055.4030405@oracle.com> <3F0A10E2-64A1-46B2-B141-7530F3D95F73@oracle.com> <53B57518.8090305@oracle.com> Message-ID: Hello, Joe. The fix looks good. >>> (Is is correct that this code is using "==" rather than ".equals" to compare strings? If .equals were correct, I would change this method to use strings in switch.) >> Interesting question. The history of this code is lost 10 years ago, so I don?t know why == is used here instead of equals. >> Just looking at the code I do not see any real reason to use ==, so I would say it?s a bug. So I would say we can replace it with switch. Ok, I was thinking about the same. Could you please file a P4 bug against swing? We will handle it further. Thank you. With best regards. Petr. > On Jul 3, 2014, at 7:22 PM, Joe Darcy wrote: > > Hi Petr, > > On 07/01/2014 01:51 PM, Petr Pchelko wrote: >> Hello, Joe. >> >>> (Is is correct that this code is using "==" rather than ".equals" to compare strings? If .equals were correct, I would change this method to use strings in switch.) >> Interesting question. The history of this code is lost 10 years ago, so I don?t know why == is used here instead of equals. >> Just looking at the code I do not see any real reason to use ==, so I would say it?s a bug. So I would say we can replace it with switch. > > Upon further reflection, I'd prefer the change to using a .equals based comparison being done under a different changeset. Doing so will make it easier to isolate any problems which may arise strictly from generification and warning removal. > >> >>> (This degree of explanation struck me as overkill for a comment, but I can work on adding something along these lines if you think it would be helpful to future readers of the code.) >> Thank you for the detailed explanation, could you please make the comment slightly more explanatory? I think that adding the info that Number subclasses are not comparable with each other as Numbers would be enough. > > Comment expanded. > >> >>> The changes in javax.swing.tree and javax.swing.undo are new in this request. >> I?ve looked at these too, no new comments about them. > > Update webrev: > > http://cr.openjdk.java.net/~darcy/8043550.1/ > > Thanks, > > -Joe > >> >> Thank you. >> With best regards. Petr. >> >>> On Jul 1, 2014, at 8:22 PM, Joe Darcy wrote: >>> >>> Hi Petr, >>> >>> On 07/01/2014 01:17 AM, Petr Pchelko wrote: >>>> Hello, Joe. >>>> >>>> It's hard to understand what to review and what not to review. Could you please generate a separate webrev for the changes that needs to be reviewed next time? >>>> I've looked only to the javax.swing package, so I'm not sure I've reviewed everything that needed to be reviewed. >>>> >>>> 1. JComboBox: 1983 - no need to suppress warning >>> Unnecessary suppression removed. >>> >>>> 2. JComponent: 4121 - the change is incorrect. Value can be not an instance of Set. It depends on the property name. See line 4124 where it's cast to Boolean >>> Noted; I've changed this to have a declaration of strokeSet in each of the if block where the unchecked cast used to occur. >>> >>> (Is is correct that this code is using "==" rather than ".equals" to compare strings? If .equals were correct, I would change this method to use strings in switch.) >>> >>>> 3. SpinnerNumberModel: 90 - There's a typo in the comment with braces. Also, could you please clarify what do you mean under "awkward to use"? >>> Typo fixed. >>> >>> The actual Comparable mins and max people are likely to pass in are values of type java.lang.Double, java.lang.Integer, etc. Such types are correctly declared as Comparable to themselves: >>> >>> public final class Double extends Number implements Comparable {...} >>> >>> public final class Integer extends Number implements Comparable {...} >>> >>> This means that in the class for Double, there are two compareTo methods, one that takes a Double argument and one that takes an Object argument; the latter is the bridge method for the former. Of note is that there is *not* a compareTo method taking a Number as an argument. >>> >>> The Number type is a bit misnamed as an abstraction; it just means "convertible to primitive." Therefore, two arbitrary Number types are not mutually Comparable so it is sensible that Double doesn't have a compareTo bridge method for Number. >>> >>> If the minimum and maximum values were declared as Comparable with the aim of comparing two Number instances with them, in practice that would mean calling a compareTo(Number) method which doesn't exist. In that sense, it would be awkward to use Comparable ;-) >>> >>> (This degree of explanation struck me as overkill for a comment, but I can work on adding something along these lines if you think it would be helpful to future readers of the code.) >>> >>> The changes in javax.swing.tree and javax.swing.undo are new in this request. >>> >>> Thanks, >>> >>> -Joe >>> >>>> With best regards. Petr. >>>> >>>> On 30 ???? 2014 ?., at 20:20, Joe Darcy wrote: >>>> >>>>> Hello, >>>>> >>>>> Please review the final batch of changes to resolve all the unchecked and rawtypes warnings in swing: >>>>> >>>>> JDK-8043550 : Fix raw and unchecked lint warnings in javax.swing.* >>>>> http://cr.openjdk.java.net/~darcy/8043550.0/ >>>>> >>>>> For completeness, this webrev also includes the in-progress changes for >>>>> >>>>> 8043548: Fix raw and unchecked lint warnings in javax.swing.plaf.* >>>>> 8042849: Fix raw and unchecked warnings in com.sun.java.swing >>>>> >>>>> For 8043548, there is still some review work going on to sort out some of the details; 8042849 has been approved, but not pushed yet as it could conceivably need updating based on other changes in swing. >>>>> >>>>> It was not immediately clear how javax.swing.tree.TreeNode.children(), which returns a raw Enumeration, should be generified. I changed it to >>>>> >>>>> Enumeration children(); >>>>> >>>>> and that seems to work fine. Something like >>>>> >>>>> Enumeration >>>>> >>>>> with a covariant override would save a few casts in a private implementation, but generally doesn't seem to be a good trade-off since many normal clients could be inconvenienced dealing with the wildcard. >>>>> >>>>> How to best generify the field javax.swing.KeyboardManager.containerMap was not immediately clear either. The documentation implies the nested Hashtable could be something like a Hashtable >>>>> >>>>> 68 /** >>>>> 69 * maps top-level containers to a sub-hashtable full of keystrokes >>>>> 70 */ >>>>> 71 Hashtable> containerMap = new Hashtable<>(); >>>>> >>>>> but that doesn't work out throughout the entire file since there is code that add entries using a Class object as the key. In the end, I just used the not-very-precise Hashtable. >>>>> >>>>> Thanks, >>>>> >>>>> -Joe > From joe.darcy at oracle.com Thu Jul 3 19:44:45 2014 From: joe.darcy at oracle.com (Joe Darcy) Date: Thu, 03 Jul 2014 12:44:45 -0700 Subject: Supplemental code review request for JDK-8043550: Fix raw and unchecked lint warnings in javax.swing.* Message-ID: <53B5B2AD.3040803@oracle.com> Hello, In the course of fixing JDK-8043550: Fix raw and unchecked lint warnings in javax.swing.* http://cr.openjdk.java.net/~darcy/8043550.1/ I encountered a build failure in jconsole due to a conflict between a recent generification in jconsole 8044865: Fix raw and unchecked lint warnings in management-related code http://hg.openjdk.java.net/jdk9/dev/jdk/rev/81e22723ba57 and the newly generified swing. Fortunately, the adjustment in jconsole to be reviewed is simple: --- a/src/share/classes/sun/tools/jconsole/inspector/TableSorter.java Tue Jul 01 23:09:52 2014 +0000 +++ b/src/share/classes/sun/tools/jconsole/inspector/TableSorter.java Thu Jul 03 12:09:44 2014 -0700 @@ -217,17 +217,17 @@ } } - private Vector getRow(int row) { - return (Vector) dataVector.elementAt(row); + private Vector getRow(int row) { + return dataVector.elementAt(row); } @SuppressWarnings("unchecked") - private void setRow(Vector data, int row) { + private void setRow(Vector data, int row) { dataVector.setElementAt(data,row); } private void swap(int i, int j, int column) { - Vector data = getRow(i); + Vector data = getRow(i); setRow(getRow(j),i); setRow(data,j); The protected dataVector field is now declared to be a Vector> so the more precise type can be used in these private methods. Thanks, -Joe From mandy.chung at oracle.com Thu Jul 3 20:20:46 2014 From: mandy.chung at oracle.com (Mandy Chung) Date: Thu, 03 Jul 2014 13:20:46 -0700 Subject: Supplemental code review request for JDK-8043550: Fix raw and unchecked lint warnings in javax.swing.* In-Reply-To: <53B5B2AD.3040803@oracle.com> References: <53B5B2AD.3040803@oracle.com> Message-ID: <53B5BB1E.5070501@oracle.com> I reviewed the jconsole change that looks okay to me. Mandy On 7/3/14 12:44 PM, Joe Darcy wrote: > Hello, > > In the course of fixing > > JDK-8043550: Fix raw and unchecked lint warnings in javax.swing.* > http://cr.openjdk.java.net/~darcy/8043550.1/ > > I encountered a build failure in jconsole due to a conflict between a > recent generification in jconsole > > 8044865: Fix raw and unchecked lint warnings in management-related > code > http://hg.openjdk.java.net/jdk9/dev/jdk/rev/81e22723ba57 > > and the newly generified swing. Fortunately, the adjustment in > jconsole to be reviewed is simple: > > --- a/src/share/classes/sun/tools/jconsole/inspector/TableSorter.java > Tue Jul 01 23:09:52 2014 +0000 > +++ b/src/share/classes/sun/tools/jconsole/inspector/TableSorter.java > Thu Jul 03 12:09:44 2014 -0700 > @@ -217,17 +217,17 @@ > } > } > > - private Vector getRow(int row) { > - return (Vector) dataVector.elementAt(row); > + private Vector getRow(int row) { > + return dataVector.elementAt(row); > } > > @SuppressWarnings("unchecked") > - private void setRow(Vector data, int row) { > + private void setRow(Vector data, int row) { > dataVector.setElementAt(data,row); > } > > private void swap(int i, int j, int column) { > - Vector data = getRow(i); > + Vector data = getRow(i); > setRow(getRow(j),i); > setRow(data,j); > > > The protected dataVector field is now declared to be a > Vector> so the more precise type can be used in these > private methods. > > Thanks, > > -Joe From alexandr.scherbatiy at oracle.com Fri Jul 4 09:36:42 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Fri, 04 Jul 2014 13:36:42 +0400 Subject: [9] Review request for JDK-8041982 Use of animated icon in JLayer causes CPU spin In-Reply-To: <53B30B56.7070703@oracle.com> References: <53B30B56.7070703@oracle.com> Message-ID: <53B675AA.6010004@oracle.com> The fix looks good to me. You could add @Override annotations to the JLayer methods and split long lines to make them shorter. Thanks, Alexandr. On 7/1/2014 11:26 PM, Alexander Potochkin wrote: > Hello > > Please review the fix the the following RFE: > https://bugs.openjdk.java.net/browse/JDK-8041982 > > JLayer/LayerUI classes don't currently allow to override the > imageUpate() method > to control the specific cases involved animated gif images. > > The proposed API change provides the required API for JDK9 > http://cr.openjdk.java.net/~alexp/8041982/webrev.00/ > > The request to the public API change will be filed after the technical > review > > Thanks > alexp From anthony.petrov at oracle.com Fri Jul 4 10:12:30 2014 From: anthony.petrov at oracle.com (Anthony Petrov) Date: Fri, 04 Jul 2014 14:12:30 +0400 Subject: [9] Review request for JDK-8046559: NPE when changing Windows theme In-Reply-To: <53B408E1.70008@oracle.com> References: <53B408E1.70008@oracle.com> Message-ID: <53B67E0E.1020205@oracle.com> Hi Alexey, src/windows/classes/sun/awt/windows/WToolkit.java > 940 final Map props = getWProps(); > 941 updateXPStyleEnabled(props.get(XPSTYLE_THEME_ACTIVE)); > 971 private synchronized Map getWProps() { > 972 return (wprops != null) ? wprops.getProperties() : null; There is a potential NPE at line 941. -- best regards, Anthony On 7/2/2014 5:28 PM, Alexey Ivanov wrote: > Hi AWT, Swing teams, > > Could you please review the fix to JDK-8046559 for jdk9: > bug: https://bugs.openjdk.java.net/browse/JDK-8046559 > webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.00/ > > Problem description: > When changing Windows themes from a theme with visual styles (Windows > Aero or Windows Basic) to a classic one, NullPointerException could be > thrown from Swing code during component tree validation, or > InternalError could be thrown during component painting. > > Root cause: > Windows theme data are accessed via XPStyle and ThemeReader. When the > theme is switched to a classic one, theme handles become unavailable, > and theme data cannot be accessed any more. The change in theme is > posted to EDT; at the same time, the UI often needs to repaint before > the theme change is completely handled in Swing. This leads to NPE and > InternalError as the code tries to access the data that has become > unavailable. > > The fix: > Windows desktop properties are updated right on Windows Toolkit thread, > and the value of "win.xpstyle.themeActive" is stored in > ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop > properties are delivered either synchronously on EDT or asynchronously > via DesktopPropertyChangeSupport, as it used to be. > > Getters in XPStyle class check for null values and return dummy defaults > if ThemeReader returned null. SkinPainters also check whether theming is > still available before asking ThemeReader to paint. > > Access to XPStyle.xp instance is blocked as soon as user switches > themes. The object will be cleaned when the corresponding > PropertyChangeEvent is handled by Swing. > > > This new version of the fix addresses issues found with the initial > submission of JDK-8039383 fix: > - JDK-8046239: Build failure in 9-client on all non-Windows platforms > - JDK-8046391: Hang displaying JFileChooser with Windows L&F > > See also > http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html > and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ > > > Regression test: > No regression test is provided due to its complexity. Whether > NullPointerException or InternalError are thrown depends on the order of > event handling, sometimes exceptions do not occur when changing theme of > visual styles enabled theme to a classic theme. > > I included regression test for hang in JFileChooser, JDK-8046391. > > > Thank you, > Alexey. From petr.pchelko at oracle.com Fri Jul 4 10:28:12 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Fri, 4 Jul 2014 14:28:12 +0400 Subject: [9] Review request for JDK-8046559: NPE when changing Windows theme In-Reply-To: <53B67E0E.1020205@oracle.com> References: <53B408E1.70008@oracle.com> <53B67E0E.1020205@oracle.com> Message-ID: Hello, Alexey. Your test does not test the JFileChooser hang, because the bug is reproducible only in plugin mode where TK thread doesn't have an AppContext and we update the ThemeReader on the Toolkit thread. Your test runs in standalone mode where completely different codepath is used. So I suggest either remove the test or update it to emulate multi-appcontext environment. Please see test/javax/swing/JComponent/8043610/bug8043610.java for an example on how to emulate this. Otherwise the fix looks good assuming the JPRT job runs fine. With best regards. Petr. On 04 ???? 2014 ?., at 14:12, Anthony Petrov wrote: > Hi Alexey, > > src/windows/classes/sun/awt/windows/WToolkit.java >> 940 final Map props = getWProps(); >> 941 updateXPStyleEnabled(props.get(XPSTYLE_THEME_ACTIVE)); > >> 971 private synchronized Map getWProps() { >> 972 return (wprops != null) ? wprops.getProperties() : null; > > There is a potential NPE at line 941. > > -- > best regards, > Anthony > > On 7/2/2014 5:28 PM, Alexey Ivanov wrote: >> Hi AWT, Swing teams, >> >> Could you please review the fix to JDK-8046559 for jdk9: >> bug: https://bugs.openjdk.java.net/browse/JDK-8046559 >> webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.00/ >> >> Problem description: >> When changing Windows themes from a theme with visual styles (Windows >> Aero or Windows Basic) to a classic one, NullPointerException could be >> thrown from Swing code during component tree validation, or >> InternalError could be thrown during component painting. >> >> Root cause: >> Windows theme data are accessed via XPStyle and ThemeReader. When the >> theme is switched to a classic one, theme handles become unavailable, >> and theme data cannot be accessed any more. The change in theme is >> posted to EDT; at the same time, the UI often needs to repaint before >> the theme change is completely handled in Swing. This leads to NPE and >> InternalError as the code tries to access the data that has become >> unavailable. >> >> The fix: >> Windows desktop properties are updated right on Windows Toolkit thread, >> and the value of "win.xpstyle.themeActive" is stored in >> ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop >> properties are delivered either synchronously on EDT or asynchronously >> via DesktopPropertyChangeSupport, as it used to be. >> >> Getters in XPStyle class check for null values and return dummy defaults >> if ThemeReader returned null. SkinPainters also check whether theming is >> still available before asking ThemeReader to paint. >> >> Access to XPStyle.xp instance is blocked as soon as user switches >> themes. The object will be cleaned when the corresponding >> PropertyChangeEvent is handled by Swing. >> >> >> This new version of the fix addresses issues found with the initial >> submission of JDK-8039383 fix: >> - JDK-8046239: Build failure in 9-client on all non-Windows platforms >> - JDK-8046391: Hang displaying JFileChooser with Windows L&F >> >> See also >> http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html >> and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ >> >> >> Regression test: >> No regression test is provided due to its complexity. Whether >> NullPointerException or InternalError are thrown depends on the order of >> event handling, sometimes exceptions do not occur when changing theme of >> visual styles enabled theme to a classic theme. >> >> I included regression test for hang in JFileChooser, JDK-8046391. >> >> >> Thank you, >> Alexey. From petr.pchelko at oracle.com Fri Jul 4 11:14:18 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Fri, 4 Jul 2014 15:14:18 +0400 Subject: [9] Review request for JDK-8046559: NPE when changing Windows theme In-Reply-To: References: <53B408E1.70008@oracle.com> <53B67E0E.1020205@oracle.com> Message-ID: <77F8A008-C68C-419B-B329-114D2A12ACFB@oracle.com> Hello, Alexey. > Your test does not test the JFileChooser hang, because the bug is reproducible only in plugin mode where TK thread doesn't > have an AppContext and we update the ThemeReader on the Toolkit thread. Your test runs in standalone mode > where completely different codepath is used. So I suggest either remove the test or update it to emulate multi-appcontext > environment. Please see test/javax/swing/JComponent/8043610/bug8043610.java for an example on how to emulate this. Sorry, disregard this comment. You've updated the code so that now it could deadlock in standalone too. The fix looks good. With best regards. Petr. On 04 ???? 2014 ?., at 14:28, Petr Pchelko wrote: > Hello, Alexey. > > Your test does not test the JFileChooser hang, because the bug is reproducible only in plugin mode where TK thread doesn't > have an AppContext and we update the ThemeReader on the Toolkit thread. Your test runs in standalone mode > where completely different codepath is used. So I suggest either remove the test or update it to emulate multi-appcontext > environment. Please see test/javax/swing/JComponent/8043610/bug8043610.java for an example on how to emulate this. > > Otherwise the fix looks good assuming the JPRT job runs fine. > > With best regards. Petr. > > On 04 ???? 2014 ?., at 14:12, Anthony Petrov wrote: > >> Hi Alexey, >> >> src/windows/classes/sun/awt/windows/WToolkit.java >>> 940 final Map props = getWProps(); >>> 941 updateXPStyleEnabled(props.get(XPSTYLE_THEME_ACTIVE)); >> >>> 971 private synchronized Map getWProps() { >>> 972 return (wprops != null) ? wprops.getProperties() : null; >> >> There is a potential NPE at line 941. >> >> -- >> best regards, >> Anthony >> >> On 7/2/2014 5:28 PM, Alexey Ivanov wrote: >>> Hi AWT, Swing teams, >>> >>> Could you please review the fix to JDK-8046559 for jdk9: >>> bug: https://bugs.openjdk.java.net/browse/JDK-8046559 >>> webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.00/ >>> >>> Problem description: >>> When changing Windows themes from a theme with visual styles (Windows >>> Aero or Windows Basic) to a classic one, NullPointerException could be >>> thrown from Swing code during component tree validation, or >>> InternalError could be thrown during component painting. >>> >>> Root cause: >>> Windows theme data are accessed via XPStyle and ThemeReader. When the >>> theme is switched to a classic one, theme handles become unavailable, >>> and theme data cannot be accessed any more. The change in theme is >>> posted to EDT; at the same time, the UI often needs to repaint before >>> the theme change is completely handled in Swing. This leads to NPE and >>> InternalError as the code tries to access the data that has become >>> unavailable. >>> >>> The fix: >>> Windows desktop properties are updated right on Windows Toolkit thread, >>> and the value of "win.xpstyle.themeActive" is stored in >>> ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop >>> properties are delivered either synchronously on EDT or asynchronously >>> via DesktopPropertyChangeSupport, as it used to be. >>> >>> Getters in XPStyle class check for null values and return dummy defaults >>> if ThemeReader returned null. SkinPainters also check whether theming is >>> still available before asking ThemeReader to paint. >>> >>> Access to XPStyle.xp instance is blocked as soon as user switches >>> themes. The object will be cleaned when the corresponding >>> PropertyChangeEvent is handled by Swing. >>> >>> >>> This new version of the fix addresses issues found with the initial >>> submission of JDK-8039383 fix: >>> - JDK-8046239: Build failure in 9-client on all non-Windows platforms >>> - JDK-8046391: Hang displaying JFileChooser with Windows L&F >>> >>> See also >>> http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html >>> and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ >>> >>> >>> Regression test: >>> No regression test is provided due to its complexity. Whether >>> NullPointerException or InternalError are thrown depends on the order of >>> event handling, sometimes exceptions do not occur when changing theme of >>> visual styles enabled theme to a classic theme. >>> >>> I included regression test for hang in JFileChooser, JDK-8046391. >>> >>> >>> Thank you, >>> Alexey. > From anton.tarasov at oracle.com Fri Jul 4 13:29:29 2014 From: anton.tarasov at oracle.com (Anton V. Tarasov) Date: Fri, 04 Jul 2014 17:29:29 +0400 Subject: [8u-dev] Review Request: 8049334 SortingFocusTraversalPolicy throws IllegalArgumentException from the sort method Message-ID: <53B6AC39.8030806@oracle.com> Hello, This is a direct [*] backport into jdk8u-dev (8u40) of the following fix: bug: https://bugs.openjdk.java.net/browse/JDK-8048887 webrev: http://cr.openjdk.java.net/~ant/JDK-8048887/webrev.1 Thanks, Anton. [*] Except that I had to correct the @run line of the reg test with the right bugid. From alexandr.scherbatiy at oracle.com Fri Jul 4 13:43:26 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Fri, 04 Jul 2014 17:43:26 +0400 Subject: [8u-dev] Review Request: 8049334 SortingFocusTraversalPolicy throws IllegalArgumentException from the sort method In-Reply-To: <53B6AC39.8030806@oracle.com> References: <53B6AC39.8030806@oracle.com> Message-ID: <53B6AF7E.4000600@oracle.com> The fix looks good to me. Thanks, Alexandr. On 7/4/2014 5:29 PM, Anton V. Tarasov wrote: > Hello, > > This is a direct [*] backport into jdk8u-dev (8u40) of the following fix: > > bug: https://bugs.openjdk.java.net/browse/JDK-8048887 > webrev: http://cr.openjdk.java.net/~ant/JDK-8048887/webrev.1 > > Thanks, > Anton. > > [*] Except that I had to correct the @run line of the reg test with > the right bugid. From anton.tarasov at oracle.com Fri Jul 4 13:45:33 2014 From: anton.tarasov at oracle.com (Anton V. Tarasov) Date: Fri, 04 Jul 2014 17:45:33 +0400 Subject: [9] Review Request: 8049346 fix the @run line of the test: jdk/test/java/awt/Focus/SortingFTP/JDK8048887.java Message-ID: <53B6AFFD.5010907@oracle.com> Hello, Please, review a fix of the reg test for JDK-8048887, where I put a wrong bugid into the @run tag: bug: https://bugs.openjdk.java.net/browse/JDK-8049346 webrev: http://cr.openjdk.java.net/~ant/JDK-8049346/webrev.0 (The test works fine, now with jtreg as well) Thanks! Anton. From petr.pchelko at oracle.com Fri Jul 4 13:49:15 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Fri, 4 Jul 2014 17:49:15 +0400 Subject: [9] Review Request: 8049346 fix the @run line of the test: jdk/test/java/awt/Focus/SortingFTP/JDK8048887.java In-Reply-To: <53B6AFFD.5010907@oracle.com> References: <53B6AFFD.5010907@oracle.com> Message-ID: <98F8862C-EF8F-4865-B6F0-CB8119D6C92A@oracle.com> Hello, Anton. The fix looks good. With best regards. Petr. On 04 ???? 2014 ?., at 17:45, Anton V. Tarasov wrote: > Hello, > > Please, review a fix of the reg test for JDK-8048887, where I put a wrong bugid into the @run tag: > > bug: https://bugs.openjdk.java.net/browse/JDK-8049346 > webrev: http://cr.openjdk.java.net/~ant/JDK-8049346/webrev.0 > > (The test works fine, now with jtreg as well) > > Thanks! > Anton. From petr.pchelko at oracle.com Fri Jul 4 13:49:48 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Fri, 4 Jul 2014 17:49:48 +0400 Subject: [8u-dev] Review Request: 8049334 SortingFocusTraversalPolicy throws IllegalArgumentException from the sort method In-Reply-To: <53B6AF7E.4000600@oracle.com> References: <53B6AC39.8030806@oracle.com> <53B6AF7E.4000600@oracle.com> Message-ID: <08A899B6-5142-43CB-B8A5-BB22D0EC57D8@oracle.com> Hello, Anton. The fix looks good. With best regards. Petr. On 04 ???? 2014 ?., at 17:43, Alexander Scherbatiy wrote: > > The fix looks good to me. > > Thanks, > Alexandr. > > On 7/4/2014 5:29 PM, Anton V. Tarasov wrote: >> Hello, >> >> This is a direct [*] backport into jdk8u-dev (8u40) of the following fix: >> >> bug: https://bugs.openjdk.java.net/browse/JDK-8048887 >> webrev: http://cr.openjdk.java.net/~ant/JDK-8048887/webrev.1 >> >> Thanks, >> Anton. >> >> [*] Except that I had to correct the @run line of the reg test with the right bugid. > From alexey.ivanov at oracle.com Fri Jul 4 13:49:13 2014 From: alexey.ivanov at oracle.com (Alexey Ivanov) Date: Fri, 04 Jul 2014 17:49:13 +0400 Subject: [9] Review request for JDK-8046559: NPE when changing Windows theme In-Reply-To: <53B67E0E.1020205@oracle.com> References: <53B408E1.70008@oracle.com> <53B67E0E.1020205@oracle.com> Message-ID: <53B6B0D9.8020703@oracle.com> Hi Anthony, Thank you for your review. You're right, there's a potential NPE at line 941 in WToolkit.java. I've added null check to avoid NPE. Could you please review 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 Map props = getWProps(); >> 941 updateXPStyleEnabled(props.get(XPSTYLE_THEME_ACTIVE)); > >> 971 private synchronized Map getWProps() { >> 972 return (wprops != null) ? wprops.getProperties() : null; > > There is a potential NPE at line 941. Yes, you're > > -- > best regards, > Anthony > > On 7/2/2014 5:28 PM, Alexey Ivanov wrote: >> Hi AWT, Swing teams, >> >> Could you please review the fix to JDK-8046559 for jdk9: >> bug: https://bugs.openjdk.java.net/browse/JDK-8046559 >> webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.00/ >> >> Problem description: >> When changing Windows themes from a theme with visual styles (Windows >> Aero or Windows Basic) to a classic one, NullPointerException could be >> thrown from Swing code during component tree validation, or >> InternalError could be thrown during component painting. >> >> Root cause: >> Windows theme data are accessed via XPStyle and ThemeReader. When the >> theme is switched to a classic one, theme handles become unavailable, >> and theme data cannot be accessed any more. The change in theme is >> posted to EDT; at the same time, the UI often needs to repaint before >> the theme change is completely handled in Swing. This leads to NPE and >> InternalError as the code tries to access the data that has become >> unavailable. >> >> The fix: >> Windows desktop properties are updated right on Windows Toolkit thread, >> and the value of "win.xpstyle.themeActive" is stored in >> ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop >> properties are delivered either synchronously on EDT or asynchronously >> via DesktopPropertyChangeSupport, as it used to be. >> >> Getters in XPStyle class check for null values and return dummy defaults >> if ThemeReader returned null. SkinPainters also check whether theming is >> still available before asking ThemeReader to paint. >> >> Access to XPStyle.xp instance is blocked as soon as user switches >> themes. The object will be cleaned when the corresponding >> PropertyChangeEvent is handled by Swing. >> >> >> This new version of the fix addresses issues found with the initial >> submission of JDK-8039383 fix: >> - JDK-8046239: Build failure in 9-client on all non-Windows platforms >> - JDK-8046391: Hang displaying JFileChooser with Windows L&F >> >> See also >> http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html >> and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ >> >> >> Regression test: >> No regression test is provided due to its complexity. Whether >> NullPointerException or InternalError are thrown depends on the order of >> event handling, sometimes exceptions do not occur when changing theme of >> visual styles enabled theme to a classic theme. >> >> I included regression test for hang in JFileChooser, JDK-8046391. >> >> >> Thank you, >> Alexey. From anthony.petrov at oracle.com Fri Jul 4 13:51:00 2014 From: anthony.petrov at oracle.com (Anthony Petrov) Date: Fri, 04 Jul 2014 17:51:00 +0400 Subject: [9] Review request for JDK-8046559: NPE when changing Windows theme In-Reply-To: <53B6B0D9.8020703@oracle.com> References: <53B408E1.70008@oracle.com> <53B67E0E.1020205@oracle.com> <53B6B0D9.8020703@oracle.com> Message-ID: <53B6B144.4070607@oracle.com> Thanks for the update. The fix looks good to me. -- best regards, Anthony On 7/4/2014 5:49 PM, Alexey Ivanov wrote: > Hi Anthony, > > Thank you for your review. > You're right, there's a potential NPE at line 941 in WToolkit.java. > > I've added null check to avoid NPE. > > > Could you please review 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 Map props = getWProps(); >>> 941 updateXPStyleEnabled(props.get(XPSTYLE_THEME_ACTIVE)); >> >>> 971 private synchronized Map getWProps() { >>> 972 return (wprops != null) ? wprops.getProperties() : null; >> >> There is a potential NPE at line 941. > Yes, you're >> >> -- >> best regards, >> Anthony >> >> On 7/2/2014 5:28 PM, Alexey Ivanov wrote: >>> Hi AWT, Swing teams, >>> >>> Could you please review the fix to JDK-8046559 for jdk9: >>> bug: https://bugs.openjdk.java.net/browse/JDK-8046559 >>> webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.00/ >>> >>> Problem description: >>> When changing Windows themes from a theme with visual styles (Windows >>> Aero or Windows Basic) to a classic one, NullPointerException could be >>> thrown from Swing code during component tree validation, or >>> InternalError could be thrown during component painting. >>> >>> Root cause: >>> Windows theme data are accessed via XPStyle and ThemeReader. When the >>> theme is switched to a classic one, theme handles become unavailable, >>> and theme data cannot be accessed any more. The change in theme is >>> posted to EDT; at the same time, the UI often needs to repaint before >>> the theme change is completely handled in Swing. This leads to NPE and >>> InternalError as the code tries to access the data that has become >>> unavailable. >>> >>> The fix: >>> Windows desktop properties are updated right on Windows Toolkit thread, >>> and the value of "win.xpstyle.themeActive" is stored in >>> ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop >>> properties are delivered either synchronously on EDT or asynchronously >>> via DesktopPropertyChangeSupport, as it used to be. >>> >>> Getters in XPStyle class check for null values and return dummy defaults >>> if ThemeReader returned null. SkinPainters also check whether theming is >>> still available before asking ThemeReader to paint. >>> >>> Access to XPStyle.xp instance is blocked as soon as user switches >>> themes. The object will be cleaned when the corresponding >>> PropertyChangeEvent is handled by Swing. >>> >>> >>> This new version of the fix addresses issues found with the initial >>> submission of JDK-8039383 fix: >>> - JDK-8046239: Build failure in 9-client on all non-Windows platforms >>> - JDK-8046391: Hang displaying JFileChooser with Windows L&F >>> >>> See also >>> http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html >>> and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ >>> >>> >>> Regression test: >>> No regression test is provided due to its complexity. Whether >>> NullPointerException or InternalError are thrown depends on the order of >>> event handling, sometimes exceptions do not occur when changing theme of >>> visual styles enabled theme to a classic theme. >>> >>> I included regression test for hang in JFileChooser, JDK-8046391. >>> >>> >>> Thank you, >>> Alexey. > From anton.tarasov at oracle.com Fri Jul 4 13:52:55 2014 From: anton.tarasov at oracle.com (Anton V. Tarasov) Date: Fri, 04 Jul 2014 17:52:55 +0400 Subject: [8u-dev] Review Request: 8049334 SortingFocusTraversalPolicy throws IllegalArgumentException from the sort method In-Reply-To: <53B6AC39.8030806@oracle.com> References: <53B6AC39.8030806@oracle.com> Message-ID: <53B6B1B7.7060801@oracle.com> I'm resending the request to: jdk8u-dev at openjdk.java.net Thanks, Anton. On 04.07.2014 17:29, Anton V. Tarasov wrote: > Hello, > > This is a direct [*] backport into jdk8u-dev (8u40) of the following fix: > > bug: https://bugs.openjdk.java.net/browse/JDK-8048887 > webrev: http://cr.openjdk.java.net/~ant/JDK-8048887/webrev.1 > > Thanks, > Anton. > > [*] Except that I had to correct the @run line of the reg test with the right bugid. From alexey.ivanov at oracle.com Fri Jul 4 13:53:50 2014 From: alexey.ivanov at oracle.com (Alexey Ivanov) Date: Fri, 04 Jul 2014 17:53:50 +0400 Subject: [9] Review request for JDK-8046559: NPE when changing Windows theme In-Reply-To: <77F8A008-C68C-419B-B329-114D2A12ACFB@oracle.com> References: <53B408E1.70008@oracle.com> <53B67E0E.1020205@oracle.com> <77F8A008-C68C-419B-B329-114D2A12ACFB@oracle.com> Message-ID: <53B6B1EE.4050903@oracle.com> Hello Petr, Thank you for your review. Regards, Alexey. On 04.07.2014 15:14, Petr Pchelko wrote: > Hello, Alexey. > >> Your test does not test the JFileChooser hang, because the bug is reproducible only in plugin mode where TK thread doesn't >> have an AppContext and we update the ThemeReader on the Toolkit thread. Your test runs in standalone mode >> where completely different codepath is used. So I suggest either remove the test or update it to emulate multi-appcontext >> environment. Please see test/javax/swing/JComponent/8043610/bug8043610.java for an example on how to emulate this. > Sorry, disregard this comment. You've updated the code so that now it could deadlock in standalone too. > > The fix looks good. > > With best regards. Petr. > > On 04 ???? 2014 ?., at 14:28, Petr Pchelko wrote: > >> Hello, Alexey. >> >> Your test does not test the JFileChooser hang, because the bug is reproducible only in plugin mode where TK thread doesn't >> have an AppContext and we update the ThemeReader on the Toolkit thread. Your test runs in standalone mode >> where completely different codepath is used. So I suggest either remove the test or update it to emulate multi-appcontext >> environment. Please see test/javax/swing/JComponent/8043610/bug8043610.java for an example on how to emulate this. >> >> Otherwise the fix looks good assuming the JPRT job runs fine. >> >> With best regards. Petr. >> >> On 04 ???? 2014 ?., at 14:12, Anthony Petrov wrote: >> >>> Hi Alexey, >>> >>> src/windows/classes/sun/awt/windows/WToolkit.java >>>> 940 final Map props = getWProps(); >>>> 941 updateXPStyleEnabled(props.get(XPSTYLE_THEME_ACTIVE)); >>>> 971 private synchronized Map getWProps() { >>>> 972 return (wprops != null) ? wprops.getProperties() : null; >>> There is a potential NPE at line 941. >>> >>> -- >>> best regards, >>> Anthony >>> >>> On 7/2/2014 5:28 PM, Alexey Ivanov wrote: >>>> Hi AWT, Swing teams, >>>> >>>> Could you please review the fix to JDK-8046559 for jdk9: >>>> bug: https://bugs.openjdk.java.net/browse/JDK-8046559 >>>> webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.00/ >>>> >>>> Problem description: >>>> When changing Windows themes from a theme with visual styles (Windows >>>> Aero or Windows Basic) to a classic one, NullPointerException could be >>>> thrown from Swing code during component tree validation, or >>>> InternalError could be thrown during component painting. >>>> >>>> Root cause: >>>> Windows theme data are accessed via XPStyle and ThemeReader. When the >>>> theme is switched to a classic one, theme handles become unavailable, >>>> and theme data cannot be accessed any more. The change in theme is >>>> posted to EDT; at the same time, the UI often needs to repaint before >>>> the theme change is completely handled in Swing. This leads to NPE and >>>> InternalError as the code tries to access the data that has become >>>> unavailable. >>>> >>>> The fix: >>>> Windows desktop properties are updated right on Windows Toolkit thread, >>>> and the value of "win.xpstyle.themeActive" is stored in >>>> ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop >>>> properties are delivered either synchronously on EDT or asynchronously >>>> via DesktopPropertyChangeSupport, as it used to be. >>>> >>>> Getters in XPStyle class check for null values and return dummy defaults >>>> if ThemeReader returned null. SkinPainters also check whether theming is >>>> still available before asking ThemeReader to paint. >>>> >>>> Access to XPStyle.xp instance is blocked as soon as user switches >>>> themes. The object will be cleaned when the corresponding >>>> PropertyChangeEvent is handled by Swing. >>>> >>>> >>>> This new version of the fix addresses issues found with the initial >>>> submission of JDK-8039383 fix: >>>> - JDK-8046239: Build failure in 9-client on all non-Windows platforms >>>> - JDK-8046391: Hang displaying JFileChooser with Windows L&F >>>> >>>> See also >>>> http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html >>>> and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ >>>> >>>> >>>> Regression test: >>>> No regression test is provided due to its complexity. Whether >>>> NullPointerException or InternalError are thrown depends on the order of >>>> event handling, sometimes exceptions do not occur when changing theme of >>>> visual styles enabled theme to a classic theme. >>>> >>>> I included regression test for hang in JFileChooser, JDK-8046391. >>>> >>>> >>>> Thank you, >>>> Alexey. From petr.pchelko at oracle.com Mon Jul 7 10:44:08 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Mon, 7 Jul 2014 14:44:08 +0400 Subject: [9] Review request for JDK-8046559: NPE when changing Windows theme In-Reply-To: <77F8A008-C68C-419B-B329-114D2A12ACFB@oracle.com> References: <53B408E1.70008@oracle.com> <53B67E0E.1020205@oracle.com> <77F8A008-C68C-419B-B329-114D2A12ACFB@oracle.com> Message-ID: <858CDCED-856D-4434-B0D3-44791F260EA1@oracle.com> Hello, Alexey. The new version still looks good. With best regards. Petr. > On Jul 4, 2014, at 3:14 PM, Petr Pchelko wrote: > > Hello, Alexey. > >> Your test does not test the JFileChooser hang, because the bug is reproducible only in plugin mode where TK thread doesn't >> have an AppContext and we update the ThemeReader on the Toolkit thread. Your test runs in standalone mode >> where completely different codepath is used. So I suggest either remove the test or update it to emulate multi-appcontext >> environment. Please see test/javax/swing/JComponent/8043610/bug8043610.java for an example on how to emulate this. > Sorry, disregard this comment. You've updated the code so that now it could deadlock in standalone too. > > The fix looks good. > > With best regards. Petr. > > On 04 ???? 2014 ?., at 14:28, Petr Pchelko wrote: > >> Hello, Alexey. >> >> Your test does not test the JFileChooser hang, because the bug is reproducible only in plugin mode where TK thread doesn't >> have an AppContext and we update the ThemeReader on the Toolkit thread. Your test runs in standalone mode >> where completely different codepath is used. So I suggest either remove the test or update it to emulate multi-appcontext >> environment. Please see test/javax/swing/JComponent/8043610/bug8043610.java for an example on how to emulate this. >> >> Otherwise the fix looks good assuming the JPRT job runs fine. >> >> With best regards. Petr. >> >> On 04 ???? 2014 ?., at 14:12, Anthony Petrov wrote: >> >>> Hi Alexey, >>> >>> src/windows/classes/sun/awt/windows/WToolkit.java >>>> 940 final Map props = getWProps(); >>>> 941 updateXPStyleEnabled(props.get(XPSTYLE_THEME_ACTIVE)); >>> >>>> 971 private synchronized Map getWProps() { >>>> 972 return (wprops != null) ? wprops.getProperties() : null; >>> >>> There is a potential NPE at line 941. >>> >>> -- >>> best regards, >>> Anthony >>> >>> On 7/2/2014 5:28 PM, Alexey Ivanov wrote: >>>> Hi AWT, Swing teams, >>>> >>>> Could you please review the fix to JDK-8046559 for jdk9: >>>> bug: https://bugs.openjdk.java.net/browse/JDK-8046559 >>>> webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.00/ >>>> >>>> Problem description: >>>> When changing Windows themes from a theme with visual styles (Windows >>>> Aero or Windows Basic) to a classic one, NullPointerException could be >>>> thrown from Swing code during component tree validation, or >>>> InternalError could be thrown during component painting. >>>> >>>> Root cause: >>>> Windows theme data are accessed via XPStyle and ThemeReader. When the >>>> theme is switched to a classic one, theme handles become unavailable, >>>> and theme data cannot be accessed any more. The change in theme is >>>> posted to EDT; at the same time, the UI often needs to repaint before >>>> the theme change is completely handled in Swing. This leads to NPE and >>>> InternalError as the code tries to access the data that has become >>>> unavailable. >>>> >>>> The fix: >>>> Windows desktop properties are updated right on Windows Toolkit thread, >>>> and the value of "win.xpstyle.themeActive" is stored in >>>> ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop >>>> properties are delivered either synchronously on EDT or asynchronously >>>> via DesktopPropertyChangeSupport, as it used to be. >>>> >>>> Getters in XPStyle class check for null values and return dummy defaults >>>> if ThemeReader returned null. SkinPainters also check whether theming is >>>> still available before asking ThemeReader to paint. >>>> >>>> Access to XPStyle.xp instance is blocked as soon as user switches >>>> themes. The object will be cleaned when the corresponding >>>> PropertyChangeEvent is handled by Swing. >>>> >>>> >>>> This new version of the fix addresses issues found with the initial >>>> submission of JDK-8039383 fix: >>>> - JDK-8046239: Build failure in 9-client on all non-Windows platforms >>>> - JDK-8046391: Hang displaying JFileChooser with Windows L&F >>>> >>>> See also >>>> http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html >>>> and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ >>>> >>>> >>>> Regression test: >>>> No regression test is provided due to its complexity. Whether >>>> NullPointerException or InternalError are thrown depends on the order of >>>> event handling, sometimes exceptions do not occur when changing theme of >>>> visual styles enabled theme to a classic theme. >>>> >>>> I included regression test for hang in JFileChooser, JDK-8046391. >>>> >>>> >>>> Thank you, >>>> Alexey. >> > From Sergey.Bylokhov at oracle.com Mon Jul 7 17:09:38 2014 From: Sergey.Bylokhov at oracle.com (Sergey Bylokhov) Date: Mon, 07 Jul 2014 21:09:38 +0400 Subject: JDK 9 RFR of JDK-8033908: Fix serial lint warnings in com.sun.java.swing.plaf In-Reply-To: <531D9C94.7030309@oracle.com> References: <52F490F7.3090500@oracle.com> <52F4A883.1010804@oracle.com> <52F5399F.6000903@oracle.com> <531D61FA.9090806@oracle.com> <531D9C94.7030309@oracle.com> Message-ID: <53BAD452.9050509@oracle.com> Interesting that some of these classes are not Serializable like DefaultTreeCellEditor, but have transient fields and read/writeObject[1]. Looks like such typos are a good candidate for the new lint warning. [1] https://bugs.openjdk.java.net/browse/JDK-6521727 On 10.03.2014 15:05, Sergey Bylokhov wrote: > Hi, Joe. > The fix looks good to me. > > On 10.03.2014 10:55, Joe Darcy wrote: >> Hello, >> >> I've adjusted the patch based on changes to the client repo in the >> interim: >> >> http://cr.openjdk.java.net/~darcy/8033908.1/ >> >> Please review. >> >> Thanks, >> >> -Joe >> >> On 02/07/2014 11:53 AM, Joe Darcy wrote: >>> On 02/07/2014 01:33 AM, Alan Bateman wrote: >>>> On 07/02/2014 07:53, Joe Darcy wrote: >>>>> Hello, >>>>> >>>>> Please review the webrev to address >>>>> >>>>> JDK-8033908: Fix serial lint warnings in com.sun.java.swing.plaf >>>>> http://cr.openjdk.java.net/~darcy/8033908.0/ >>>> This looks fine although for cases where you comment that the >>>> supertypes aren't serial compatible across versions then I didn't >>>> check that the supertypes document it (I assume they do). >>>> >>> >>> Right, the supertypes in question are generally those covered in >>> >>> 8032627: Add @SuppressWarnings("serial") to appropriate >>> javax.swing classes >>> >>> which are the Swing type which say "I'm serializable on the same >>> version, but not across versions." Some of the types in question are >>> subtypes of types in com.sun.* which directly document this >>> constraint too. >>> >>> Thanks for the review, >>> >>> -Joe >>> >> > > -- Best regards, Sergey. From stuart.marks at oracle.com Mon Jul 7 20:48:23 2014 From: stuart.marks at oracle.com (Stuart Marks) Date: Mon, 07 Jul 2014 13:48:23 -0700 Subject: [9] Review Request: 8047025 Fix raw and unchecked lint warnings in generated nimbus files In-Reply-To: <53B499FD.90904@oracle.com> References: <53B4885A.4080607@oracle.com> <53B499FD.90904@oracle.com> Message-ID: <53BB0797.6040908@oracle.com> Hi Henry, Thanks for taking a look at this. I'd appreciate additional review from one of the Swing developers, particularly about the issue of testing Nimbus. s'marks On 7/2/14 4:47 PM, Henry Jen wrote: > Looks good to me. > > Cheers, > Henry > > > On 07/02/2014 03:31 PM, Stuart Marks wrote: >> Hi all, >> >> Please review this change for 8047025, "Fix raw and unchecked lint >> warnings in generated nimbus files." >> >> Webrev: >> >> http://cr.openjdk.java.net/~smarks/reviews/8047025/webrev.0/ >> >> Bug: >> >> https://bugs.openjdk.java.net/browse/JDK-8047025 >> >> Although this change modifies only a few lines of template files, it >> removes 31 raw and unchecked lint warnings. >> >> I've done a build with the changes in place, and I've also run SwingSet2 >> and switched it to the Nimbus L&F and it looked fine to me. Please let >> me know if I should do additional testing. >> >> Thanks, >> >> s'marks From philip.race at oracle.com Mon Jul 7 21:12:37 2014 From: philip.race at oracle.com (Phil Race) Date: Mon, 07 Jul 2014 14:12:37 -0700 Subject: [9] Review Request: 8047025 Fix raw and unchecked lint warnings in generated nimbus files In-Reply-To: <53BB0797.6040908@oracle.com> References: <53B4885A.4080607@oracle.com> <53B499FD.90904@oracle.com> <53BB0797.6040908@oracle.com> Message-ID: <53BB0D45.4050906@oracle.com> Looks ok to me. The simplest way to test nimbus is to run the "swingset2.jar" demo, and select "Nimbus" from the L&F drop down menu, then go through the various tabs in the demo. That should exercise all the commonly used elements of Nimbus. Note that SwingSet2 is in the 'closed' sources so if you don't build those regularly pick up Swingset from a promoted build. -phil. On 7/7/2014 1:48 PM, Stuart Marks wrote: > Hi Henry, > > Thanks for taking a look at this. > > I'd appreciate additional review from one of the Swing developers, > particularly about the issue of testing Nimbus. > > s'marks > > On 7/2/14 4:47 PM, Henry Jen wrote: >> Looks good to me. >> >> Cheers, >> Henry >> >> >> On 07/02/2014 03:31 PM, Stuart Marks wrote: >>> Hi all, >>> >>> Please review this change for 8047025, "Fix raw and unchecked lint >>> warnings in generated nimbus files." >>> >>> Webrev: >>> >>> http://cr.openjdk.java.net/~smarks/reviews/8047025/webrev.0/ >>> >>> Bug: >>> >>> https://bugs.openjdk.java.net/browse/JDK-8047025 >>> >>> Although this change modifies only a few lines of template files, it >>> removes 31 raw and unchecked lint warnings. >>> >>> I've done a build with the changes in place, and I've also run >>> SwingSet2 >>> and switched it to the Nimbus L&F and it looked fine to me. Please let >>> me know if I should do additional testing. >>> >>> Thanks, >>> >>> s'marks From rocky.sloan at oracle.com Mon Jul 7 22:33:15 2014 From: rocky.sloan at oracle.com (Rocky Sloan) Date: Mon, 07 Jul 2014 15:33:15 -0700 Subject: Review Request for 8044261: Fix doclint warnings (missing javadoc tags) in javax.swing.text Message-ID: <53BB202B.8060701@oracle.com> Hello, Please review the fix for the following bug: https://bugs.openjdk.java.net/browse/JDK-8044261 Webrev corresponding: http://cr.openjdk.java.net/~yan/8044261/webrev.00 Add missing @return and @param javadoc tags in javax.swing.text classes to fix doclint warnings. This is webrev 1 of 2 for this package. Thanks, - Rocky -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip.race at oracle.com Tue Jul 8 04:32:25 2014 From: philip.race at oracle.com (Phil Race) Date: Mon, 07 Jul 2014 21:32:25 -0700 Subject: Review Request for 8044261: Fix doclint warnings (missing javadoc tags) in javax.swing.text In-Reply-To: <53BB202B.8060701@oracle.com> References: <53BB202B.8060701@oracle.com> Message-ID: <53BB7459.1080908@oracle.com> Hello, You generated a webrev against jdk9/dev Therefore this change is rejected. Regenerate against jdk9/client and it can be considered -phil. On 7/7/14 3:33 PM, Rocky Sloan wrote: > Hello, > > Please review the fix for the following bug: > https://bugs.openjdk.java.net/browse/JDK-8044261 > > Webrev corresponding: > http://cr.openjdk.java.net/~yan/8044261/webrev.00 > > Add missing @return and @param javadoc tags in javax.swing.text > classes to fix doclint warnings. > This is webrev 1 of 2 for this package. > > Thanks, > > - Rocky -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuart.marks at oracle.com Tue Jul 8 17:47:33 2014 From: stuart.marks at oracle.com (Stuart Marks) Date: Tue, 08 Jul 2014 10:47:33 -0700 Subject: [9] Review Request: 8047025 Fix raw and unchecked lint warnings in generated nimbus files In-Reply-To: <53BB0D45.4050906@oracle.com> References: <53B4885A.4080607@oracle.com> <53B499FD.90904@oracle.com> <53BB0797.6040908@oracle.com> <53BB0D45.4050906@oracle.com> Message-ID: <53BC2EB5.4000408@oracle.com> Hi Phil, Thanks for reviewing this. I've run SwingSet2 in Nimbus mode with my changes and all looks fine to my eye. s'marks On 7/7/14 2:12 PM, Phil Race wrote: > Looks ok to me. > The simplest way to test nimbus is to run the "swingset2.jar" demo, and > select "Nimbus" from the L&F drop down menu, then go through the various tabs > in the demo. That should exercise all the commonly used elements of Nimbus. > Note that SwingSet2 is in the 'closed' sources so if you don't build those > regularly > pick up Swingset from a promoted build. > > -phil. > > On 7/7/2014 1:48 PM, Stuart Marks wrote: >> Hi Henry, >> >> Thanks for taking a look at this. >> >> I'd appreciate additional review from one of the Swing developers, >> particularly about the issue of testing Nimbus. >> >> s'marks >> >> On 7/2/14 4:47 PM, Henry Jen wrote: >>> Looks good to me. >>> >>> Cheers, >>> Henry >>> >>> >>> On 07/02/2014 03:31 PM, Stuart Marks wrote: >>>> Hi all, >>>> >>>> Please review this change for 8047025, "Fix raw and unchecked lint >>>> warnings in generated nimbus files." >>>> >>>> Webrev: >>>> >>>> http://cr.openjdk.java.net/~smarks/reviews/8047025/webrev.0/ >>>> >>>> Bug: >>>> >>>> https://bugs.openjdk.java.net/browse/JDK-8047025 >>>> >>>> Although this change modifies only a few lines of template files, it >>>> removes 31 raw and unchecked lint warnings. >>>> >>>> I've done a build with the changes in place, and I've also run SwingSet2 >>>> and switched it to the Nimbus L&F and it looked fine to me. Please let >>>> me know if I should do additional testing. >>>> >>>> Thanks, >>>> >>>> s'marks > From steve.sides at oracle.com Wed Jul 9 00:59:30 2014 From: steve.sides at oracle.com (Steve Sides) Date: Tue, 08 Jul 2014 17:59:30 -0700 Subject: Review request for JDK-8046597 fix doclint issues in swing classes, part 4 of 4 In-Reply-To: <53B2D960.4050600@oracle.com> References: <53B2D960.4050600@oracle.com> Message-ID: <53BC93F2.7060606@oracle.com> Hello, Could you please review this 2nd revision of doclint fixes for the following bug: https://bugs.openjdk.java.net/browse/JDK-8046597 : "fix doclint issues in swing classes, part 4 of 4" Webrev corresponding: http://cr.openjdk.java.net/~ssides/8046597/8046597.2/ These changes are base on the judk9/client/jdk repos. thanks, -steve On 7/1/2014 8:53 AM, Steve Sides wrote: > Hello, > > Could you please review the fix for the following bug: > https://bugs.openjdk.java.net/browse/JDK-8046597 > > Webrev corresponding: > http://cr.openjdk.java.net/~ssides/8046597/ > > These changes address doclint missing tag and comment issues. > > thanks, > > -steve > From henry.jen at oracle.com Wed Jul 9 03:30:47 2014 From: henry.jen at oracle.com (Henry Jen) Date: Tue, 08 Jul 2014 20:30:47 -0700 Subject: RFR: 8044862: Fix raw and unchecked lint warnings in macosx specific code In-Reply-To: <53ADE96B.8070904@oracle.com> References: <53ADE5FD.20305@oracle.com> <53ADE96B.8070904@oracle.com> Message-ID: <53BCB767.4090107@oracle.com> Hi, Would someone from swing team care to take a look at this? The change of src/macosx/classes/sun/font/CFontConfiguration.java will be dropped as it had been fixed in JDK-8048980. Cheers, Henry On 06/27/2014 03:00 PM, Joe Darcy wrote: > Hi Henry, > > Your changes look good to me (I assume there was an issue using > wildcards in AquaComboBoxButton.java). > > Thanks, > > -Joe > > On 06/27/2014 02:45 PM, Henry Jen wrote: >> Hi, >> >> Please review a webrev for fixing rawtypes and unchecked lint warning >> for macosx specific java code, this webrev is depending on >> JDK-8043548[1] where some of the override methods are defined, >> >> Also as the src/macosx/classes/apple/launcher/JavaAppLauncher.java to >> be removed from JDK-8048337, the webrev omits that file. >> >> The webrev can be found at, >> http://cr.openjdk.java.net/~henryjen/jdk9/8044862/0/webrev/ >> >> >> [1] https://bugs.openjdk.java.net/browse/JDK-8043548 >> >> Cheers, >> Henry > From petr.pchelko at oracle.com Wed Jul 9 07:33:27 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Wed, 9 Jul 2014 11:33:27 +0400 Subject: Review request for JDK-8046597 fix doclint issues in swing classes, part 4 of 4 In-Reply-To: <53BC93F2.7060606@oracle.com> References: <53B2D960.4050600@oracle.com> <53BC93F2.7060606@oracle.com> Message-ID: <03574229-57D2-404E-B5E0-0314E799DEB8@oracle.com> Hello, Steve. The fix looks good to me. With best regards. Petr. On 09 ???? 2014 ?., at 4:59, Steve Sides wrote: > Hello, > > Could you please review this 2nd revision of doclint fixes for the following bug: > https://bugs.openjdk.java.net/browse/JDK-8046597 : "fix doclint issues in swing classes, part 4 of 4" > > Webrev corresponding: > http://cr.openjdk.java.net/~ssides/8046597/8046597.2/ > > These changes are base on the judk9/client/jdk repos. > > thanks, > > -steve > > > > On 7/1/2014 8:53 AM, Steve Sides wrote: >> Hello, >> >> Could you please review the fix for the following bug: >> https://bugs.openjdk.java.net/browse/JDK-8046597 >> >> Webrev corresponding: >> http://cr.openjdk.java.net/~ssides/8046597/ >> >> These changes address doclint missing tag and comment issues. >> >> thanks, >> >> -steve >> > From petr.pchelko at oracle.com Wed Jul 9 08:07:45 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Wed, 9 Jul 2014 12:07:45 +0400 Subject: RFR: 8044862: Fix raw and unchecked lint warnings in macosx specific code In-Reply-To: <53BCB767.4090107@oracle.com> References: <53ADE5FD.20305@oracle.com> <53ADE96B.8070904@oracle.com> <53BCB767.4090107@oracle.com> Message-ID: Hello, Henry. AquaComboBoxRendererInternal : why and not just ? AquaComboBoxUI:427, 510, 530 - you can replace JComboBox with JComboBox and avoid a @SupressWarning annotation. AquaFileChooserUI.createDirectoryComboBoxRenderer actually returns a ListCellRenderer, DirectoryComboBoxModel is a model, and a combobox contains only Files. I suggest to try to genereficate this correctly and look where it brings us. Also I didn't look at the KeychainStore.java as I know nothing about this code. With best regards. Petr. On 09 ???? 2014 ?., at 7:30, Henry Jen wrote: > Hi, > > Would someone from swing team care to take a look at this? > > The change of src/macosx/classes/sun/font/CFontConfiguration.java will be dropped as it had been fixed in JDK-8048980. > > Cheers, > Henry > > > On 06/27/2014 03:00 PM, Joe Darcy wrote: >> Hi Henry, >> >> Your changes look good to me (I assume there was an issue using >> wildcards in AquaComboBoxButton.java). >> >> Thanks, >> >> -Joe >> >> On 06/27/2014 02:45 PM, Henry Jen wrote: >>> Hi, >>> >>> Please review a webrev for fixing rawtypes and unchecked lint warning >>> for macosx specific java code, this webrev is depending on >>> JDK-8043548[1] where some of the override methods are defined, >>> >>> Also as the src/macosx/classes/apple/launcher/JavaAppLauncher.java to >>> be removed from JDK-8048337, the webrev omits that file. >>> >>> The webrev can be found at, >>> http://cr.openjdk.java.net/~henryjen/jdk9/8044862/0/webrev/ >>> >>> >>> [1] https://bugs.openjdk.java.net/browse/JDK-8043548 >>> >>> Cheers, >>> Henry >> From andrei.eremeev at oracle.com Wed Jul 9 12:02:30 2014 From: andrei.eremeev at oracle.com (andrei.eremeev) Date: Wed, 09 Jul 2014 16:02:30 +0400 Subject: [9] Review Request: JDK-8043968: Fix doclint warnings from javax.swing.plaf.basic package, 1 of 7 Message-ID: <53BD2F56.307@oracle.com> Hi Swing team, Please, review the fix for the issue: https://bugs.openjdk.java.net/browse/JDK-8043968 The fix is available at: http://cr.openjdk.java.net/~yan/8043968/ Andrei From petr.pchelko at oracle.com Wed Jul 9 12:22:09 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Wed, 9 Jul 2014 16:22:09 +0400 Subject: [9] Review Request: JDK-8043968: Fix doclint warnings from javax.swing.plaf.basic package, 1 of 7 In-Reply-To: <53BD2F56.307@oracle.com> References: <53BD2F56.307@oracle.com> Message-ID: <479A7FD9-872E-49F4-9FC0-8E38493F618D@oracle.com> Hello, Andrei. BasicButtonListener.checkOpacity - I think the doc is to detailed. You basically write how the method works and it prevents us prom changing it in the future. Also it's overridden in Metal L&F and it does a different thing there. Could you please come up with some less detailed description. BasicComboBoxRenderer - the constructor doc is too detailed. BasicGraphicsUtils:55 - type ethecd BasicHTML:188 - wrong indentation BasicPopupMenuUI:225 - dot needed. BasicSeparatorUI:49 - dot needed. With best regards. Petr. On 09 ???? 2014 ?., at 16:02, andrei.eremeev wrote: > Hi Swing team, > > Please, review the fix for the issue: > https://bugs.openjdk.java.net/browse/JDK-8043968 > > The fix is available at: > http://cr.openjdk.java.net/~yan/8043968/ > > Andrei From andrei.eremeev at oracle.com Wed Jul 9 12:28:26 2014 From: andrei.eremeev at oracle.com (andrei.eremeev) Date: Wed, 09 Jul 2014 16:28:26 +0400 Subject: [9] Review Request: JDK-8043968: Fix doclint warnings from javax.swing.plaf.basic package, 1 of 7 In-Reply-To: <479A7FD9-872E-49F4-9FC0-8E38493F618D@oracle.com> References: <53BD2F56.307@oracle.com> <479A7FD9-872E-49F4-9FC0-8E38493F618D@oracle.com> Message-ID: <53BD356A.5090105@oracle.com> > BasicButtonListener.checkOpacity - I think the doc is to detailed. You basically write how the method works and it prevents us prom changing it in the future. Also it's overridden in Metal L&F and it does a different thing there. Could you please come up with some less detailed description. I cannot find the overriden method Metal L&F. But what should I write here? "Checks an opacity of the {@code AbsractButton}."? Andrei On 07/09/2014 04:22 PM, Petr Pchelko wrote: > Hello, Andrei. > > BasicButtonListener.checkOpacity - I think the doc is to detailed. You basically write how the method works and it prevents us prom changing it in the future. Also it's overridden in Metal L&F and it does a different thing there. Could you please come up with some less detailed description. > > BasicComboBoxRenderer - the constructor doc is too detailed. > > BasicGraphicsUtils:55 - type ethecd > > BasicHTML:188 - wrong indentation > > BasicPopupMenuUI:225 - dot needed. > > BasicSeparatorUI:49 - dot needed. > > With best regards. Petr. > > On 09 ???? 2014 ?., at 16:02, andrei.eremeev wrote: > >> Hi Swing team, >> >> Please, review the fix for the issue: >> https://bugs.openjdk.java.net/browse/JDK-8043968 >> >> The fix is available at: >> http://cr.openjdk.java.net/~yan/8043968/ >> >> Andrei From petr.pchelko at oracle.com Wed Jul 9 12:32:32 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Wed, 9 Jul 2014 16:32:32 +0400 Subject: [9] Review Request: JDK-8043968: Fix doclint warnings from javax.swing.plaf.basic package, 1 of 7 In-Reply-To: <53BD356A.5090105@oracle.com> References: <53BD2F56.307@oracle.com> <479A7FD9-872E-49F4-9FC0-8E38493F618D@oracle.com> <53BD356A.5090105@oracle.com> Message-ID: <60A65AD0-69D2-4D2B-B031-2277C0E7AA84@oracle.com> > I cannot find the overriden method Metal L&F. Oh, sorry. It's in Motif... > But what should I write here? > "Checks an opacity of the {@code AbsractButton}."? That's fine. With best regards. Petr. On 09 ???? 2014 ?., at 16:28, andrei.eremeev wrote: >> BasicButtonListener.checkOpacity - I think the doc is to detailed. You basically write how the method works and it prevents us prom changing it in the future. Also it's overridden in Metal L&F and it does a different thing there. Could you please come up with some less detailed description. > > I cannot find the overriden method Metal L&F. But what should I write here? > "Checks an opacity of the {@code AbsractButton}."? > > Andrei > > On 07/09/2014 04:22 PM, Petr Pchelko wrote: >> Hello, Andrei. >> >> BasicButtonListener.checkOpacity - I think the doc is to detailed. You basically write how the method works and it prevents us prom changing it in the future. Also it's overridden in Metal L&F and it does a different thing there. Could you please come up with some less detailed description. >> >> BasicComboBoxRenderer - the constructor doc is too detailed. >> >> BasicGraphicsUtils:55 - type ethecd >> >> BasicHTML:188 - wrong indentation >> >> BasicPopupMenuUI:225 - dot needed. >> >> BasicSeparatorUI:49 - dot needed. >> >> With best regards. Petr. >> >> On 09 ???? 2014 ?., at 16:02, andrei.eremeev wrote: >> >>> Hi Swing team, >>> >>> Please, review the fix for the issue: >>> https://bugs.openjdk.java.net/browse/JDK-8043968 >>> >>> The fix is available at: >>> http://cr.openjdk.java.net/~yan/8043968/ >>> >>> Andrei > From andrei.eremeev at oracle.com Wed Jul 9 12:56:49 2014 From: andrei.eremeev at oracle.com (andrei.eremeev) Date: Wed, 09 Jul 2014 16:56:49 +0400 Subject: [9] Review Request: JDK-8043968: Fix doclint warnings from javax.swing.plaf.basic package, 1 of 7 In-Reply-To: <479A7FD9-872E-49F4-9FC0-8E38493F618D@oracle.com> References: <53BD2F56.307@oracle.com> <479A7FD9-872E-49F4-9FC0-8E38493F618D@oracle.com> Message-ID: <53BD3C11.9090903@oracle.com> The second iteration: http://cr.openjdk.java.net/~yan/8043968/webrev.01/ Andrei On 07/09/2014 04:22 PM, Petr Pchelko wrote: > Hello, Andrei. > > BasicButtonListener.checkOpacity - I think the doc is to detailed. You basically write how the method works and it prevents us prom changing it in the future. Also it's overridden in Metal L&F and it does a different thing there. Could you please come up with some less detailed description. > > BasicComboBoxRenderer - the constructor doc is too detailed. > > BasicGraphicsUtils:55 - type ethecd > > BasicHTML:188 - wrong indentation > > BasicPopupMenuUI:225 - dot needed. > > BasicSeparatorUI:49 - dot needed. > > With best regards. Petr. > > On 09 ???? 2014 ?., at 16:02, andrei.eremeev wrote: > >> Hi Swing team, >> >> Please, review the fix for the issue: >> https://bugs.openjdk.java.net/browse/JDK-8043968 >> >> The fix is available at: >> http://cr.openjdk.java.net/~yan/8043968/ >> >> Andrei From petr.pchelko at oracle.com Wed Jul 9 13:00:53 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Wed, 9 Jul 2014 17:00:53 +0400 Subject: [9] Review Request: JDK-8043968: Fix doclint warnings from javax.swing.plaf.basic package, 1 of 7 In-Reply-To: <53BD3C11.9090903@oracle.com> References: <53BD2F56.307@oracle.com> <479A7FD9-872E-49F4-9FC0-8E38493F618D@oracle.com> <53BD3C11.9090903@oracle.com> Message-ID: Hello, Andrei. The new version looks good. With best regards. Petr. On 09 ???? 2014 ?., at 16:56, andrei.eremeev wrote: > The second iteration: > http://cr.openjdk.java.net/~yan/8043968/webrev.01/ > > Andrei > > On 07/09/2014 04:22 PM, Petr Pchelko wrote: >> Hello, Andrei. >> >> BasicButtonListener.checkOpacity - I think the doc is to detailed. You basically write how the method works and it prevents us prom changing it in the future. Also it's overridden in Metal L&F and it does a different thing there. Could you please come up with some less detailed description. >> >> BasicComboBoxRenderer - the constructor doc is too detailed. >> >> BasicGraphicsUtils:55 - type ethecd >> >> BasicHTML:188 - wrong indentation >> >> BasicPopupMenuUI:225 - dot needed. >> >> BasicSeparatorUI:49 - dot needed. >> >> With best regards. Petr. >> >> On 09 ???? 2014 ?., at 16:02, andrei.eremeev wrote: >> >>> Hi Swing team, >>> >>> Please, review the fix for the issue: >>> https://bugs.openjdk.java.net/browse/JDK-8043968 >>> >>> The fix is available at: >>> http://cr.openjdk.java.net/~yan/8043968/ >>> >>> Andrei > From joe.darcy at oracle.com Wed Jul 9 23:06:17 2014 From: joe.darcy at oracle.com (Joe Darcy) Date: Wed, 09 Jul 2014 16:06:17 -0700 Subject: JDK 9 RFR of JDK-8049797: Fix raw and unchecked lint warnings in javax.swing.SortingFocusTraversalPolicy Message-ID: <53BDCAE9.8050807@oracle.com> Hello, A recent change in swing added back some raw / unchecked warnings: JDK-8049797: Fix raw and unchecked lint warnings in javax.swing.SortingFocusTraversalPolicy The patch below removes them. Thanks, -Joe diff -r cc87c0d62651 src/share/classes/javax/swing/SortingFocusTraversalPolicy.java --- a/src/share/classes/javax/swing/SortingFocusTraversalPolicy.java Wed Jul 09 17:11:53 2014 +0400 +++ b/src/share/classes/javax/swing/SortingFocusTraversalPolicy.java Wed Jul 09 14:48:54 2014 -0700 @@ -109,11 +109,12 @@ AccessController.doPrivileged(new PrivilegedAction() { public Method run() { try { - Class c = Class.forName("java.util.Arrays"); - Method m = c.getDeclaredMethod("legacyMergeSort", new Class[]{Object[].class, Comparator.class}); + Method m = java.util.Arrays.class.getDeclaredMethod("legacyMergeSort", + new Class[]{Object[].class, + Comparator.class}); m.setAccessible(true); return m; - } catch (ClassNotFoundException | NoSuchMethodException e) { + } catch (NoSuchMethodException e) { // using default sorting algo return null; } From henry.jen at oracle.com Thu Jul 10 00:51:18 2014 From: henry.jen at oracle.com (Henry Jen) Date: Wed, 09 Jul 2014 17:51:18 -0700 Subject: RFR: 8044862: Fix raw and unchecked lint warnings in macosx specific code In-Reply-To: References: <53ADE5FD.20305@oracle.com> <53ADE96B.8070904@oracle.com> <53BCB767.4090107@oracle.com> Message-ID: <53BDE386.7020800@oracle.com> Thanks, Petr. I worked out AquaFileChooserUI and updated the webrev to adapt comments from both you and Joe. The updated webrev is at, http://cr.openjdk.java.net/~henryjen/jdk9/8044862/1/webrev/ Cheers, Henry On 07/09/2014 01:07 AM, Petr Pchelko wrote: > Hello, Henry. > > AquaComboBoxRendererInternal : why and not just ? > > AquaComboBoxUI:427, 510, 530 - you can replace JComboBox with JComboBox and avoid a @SupressWarning annotation. > > AquaFileChooserUI.createDirectoryComboBoxRenderer actually returns a ListCellRenderer, > DirectoryComboBoxModel is a model, and a combobox contains only Files. I suggest to try > to genereficate this correctly and look where it brings us. > > Also I didn't look at the KeychainStore.java as I know nothing about this code. > > With best regards. Petr. > > On 09 ???? 2014 ?., at 7:30, Henry Jen wrote: > >> Hi, >> >> Would someone from swing team care to take a look at this? >> >> The change of src/macosx/classes/sun/font/CFontConfiguration.java will be dropped as it had been fixed in JDK-8048980. >> >> Cheers, >> Henry >> >> >> On 06/27/2014 03:00 PM, Joe Darcy wrote: >>> Hi Henry, >>> >>> Your changes look good to me (I assume there was an issue using >>> wildcards in AquaComboBoxButton.java). >>> >>> Thanks, >>> >>> -Joe >>> >>> On 06/27/2014 02:45 PM, Henry Jen wrote: >>>> Hi, >>>> >>>> Please review a webrev for fixing rawtypes and unchecked lint warning >>>> for macosx specific java code, this webrev is depending on >>>> JDK-8043548[1] where some of the override methods are defined, >>>> >>>> Also as the src/macosx/classes/apple/launcher/JavaAppLauncher.java to >>>> be removed from JDK-8048337, the webrev omits that file. >>>> >>>> The webrev can be found at, >>>> http://cr.openjdk.java.net/~henryjen/jdk9/8044862/0/webrev/ >>>> >>>> >>>> [1] https://bugs.openjdk.java.net/browse/JDK-8043548 >>>> >>>> Cheers, >>>> Henry >>> > From petr.pchelko at oracle.com Thu Jul 10 04:13:59 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Thu, 10 Jul 2014 08:13:59 +0400 Subject: RFR: 8044862: Fix raw and unchecked lint warnings in macosx specific code In-Reply-To: <53BDE386.7020800@oracle.com> References: <53ADE5FD.20305@oracle.com> <53ADE96B.8070904@oracle.com> <53BCB767.4090107@oracle.com> <53BDE386.7020800@oracle.com> Message-ID: Hello, Henry. The new version of the fix looks good to me. With best regards. Petr. > On Jul 10, 2014, at 4:51 AM, Henry Jen wrote: > > Thanks, Petr. > > I worked out AquaFileChooserUI and updated the webrev to adapt comments from both you and Joe. > > The updated webrev is at, > http://cr.openjdk.java.net/~henryjen/jdk9/8044862/1/webrev/ > > Cheers, > Henry > > > On 07/09/2014 01:07 AM, Petr Pchelko wrote: >> Hello, Henry. >> >> AquaComboBoxRendererInternal : why and not just ? >> >> AquaComboBoxUI:427, 510, 530 - you can replace JComboBox with JComboBox and avoid a @SupressWarning annotation. >> >> AquaFileChooserUI.createDirectoryComboBoxRenderer actually returns a ListCellRenderer, >> DirectoryComboBoxModel is a model, and a combobox contains only Files. I suggest to try >> to genereficate this correctly and look where it brings us. >> >> Also I didn't look at the KeychainStore.java as I know nothing about this code. >> >> With best regards. Petr. >> >> On 09 ???? 2014 ?., at 7:30, Henry Jen wrote: >> >>> Hi, >>> >>> Would someone from swing team care to take a look at this? >>> >>> The change of src/macosx/classes/sun/font/CFontConfiguration.java will be dropped as it had been fixed in JDK-8048980. >>> >>> Cheers, >>> Henry >>> >>> >>> On 06/27/2014 03:00 PM, Joe Darcy wrote: >>>> Hi Henry, >>>> >>>> Your changes look good to me (I assume there was an issue using >>>> wildcards in AquaComboBoxButton.java). >>>> >>>> Thanks, >>>> >>>> -Joe >>>> >>>> On 06/27/2014 02:45 PM, Henry Jen wrote: >>>>> Hi, >>>>> >>>>> Please review a webrev for fixing rawtypes and unchecked lint warning >>>>> for macosx specific java code, this webrev is depending on >>>>> JDK-8043548[1] where some of the override methods are defined, >>>>> >>>>> Also as the src/macosx/classes/apple/launcher/JavaAppLauncher.java to >>>>> be removed from JDK-8048337, the webrev omits that file. >>>>> >>>>> The webrev can be found at, >>>>> http://cr.openjdk.java.net/~henryjen/jdk9/8044862/0/webrev/ >>>>> >>>>> >>>>> [1] https://bugs.openjdk.java.net/browse/JDK-8043548 >>>>> >>>>> Cheers, >>>>> Henry >>>> >> From joe.darcy at oracle.com Thu Jul 10 04:28:58 2014 From: joe.darcy at oracle.com (Joe Darcy) Date: Wed, 09 Jul 2014 21:28:58 -0700 Subject: RFR: 8044862: Fix raw and unchecked lint warnings in macosx specific code In-Reply-To: References: <53ADE5FD.20305@oracle.com> <53ADE96B.8070904@oracle.com> <53BCB767.4090107@oracle.com> <53BDE386.7020800@oracle.com> Message-ID: <53BE168A.90302@oracle.com> Looks fine to me too; thanks, -Joe On 07/09/2014 09:13 PM, Petr Pchelko wrote: > Hello, Henry. > > The new version of the fix looks good to me. > > With best regards. Petr. > >> On Jul 10, 2014, at 4:51 AM, Henry Jen wrote: >> >> Thanks, Petr. >> >> I worked out AquaFileChooserUI and updated the webrev to adapt comments from both you and Joe. >> >> The updated webrev is at, >> http://cr.openjdk.java.net/~henryjen/jdk9/8044862/1/webrev/ >> >> Cheers, >> Henry >> >> >> On 07/09/2014 01:07 AM, Petr Pchelko wrote: >>> Hello, Henry. >>> >>> AquaComboBoxRendererInternal : why and not just ? >>> >>> AquaComboBoxUI:427, 510, 530 - you can replace JComboBox with JComboBox and avoid a @SupressWarning annotation. >>> >>> AquaFileChooserUI.createDirectoryComboBoxRenderer actually returns a ListCellRenderer, >>> DirectoryComboBoxModel is a model, and a combobox contains only Files. I suggest to try >>> to genereficate this correctly and look where it brings us. >>> >>> Also I didn't look at the KeychainStore.java as I know nothing about this code. >>> >>> With best regards. Petr. >>> >>> On 09 ???? 2014 ?., at 7:30, Henry Jen wrote: >>> >>>> Hi, >>>> >>>> Would someone from swing team care to take a look at this? >>>> >>>> The change of src/macosx/classes/sun/font/CFontConfiguration.java will be dropped as it had been fixed in JDK-8048980. >>>> >>>> Cheers, >>>> Henry >>>> >>>> >>>> On 06/27/2014 03:00 PM, Joe Darcy wrote: >>>>> Hi Henry, >>>>> >>>>> Your changes look good to me (I assume there was an issue using >>>>> wildcards in AquaComboBoxButton.java). >>>>> >>>>> Thanks, >>>>> >>>>> -Joe >>>>> >>>>> On 06/27/2014 02:45 PM, Henry Jen wrote: >>>>>> Hi, >>>>>> >>>>>> Please review a webrev for fixing rawtypes and unchecked lint warning >>>>>> for macosx specific java code, this webrev is depending on >>>>>> JDK-8043548[1] where some of the override methods are defined, >>>>>> >>>>>> Also as the src/macosx/classes/apple/launcher/JavaAppLauncher.java to >>>>>> be removed from JDK-8048337, the webrev omits that file. >>>>>> >>>>>> The webrev can be found at, >>>>>> http://cr.openjdk.java.net/~henryjen/jdk9/8044862/0/webrev/ >>>>>> >>>>>> >>>>>> [1] https://bugs.openjdk.java.net/browse/JDK-8043548 >>>>>> >>>>>> Cheers, >>>>>> Henry From andrei.eremeev at oracle.com Thu Jul 10 07:58:47 2014 From: andrei.eremeev at oracle.com (andrei.eremeev) Date: Thu, 10 Jul 2014 11:58:47 +0400 Subject: [9] Review Request: JDK-8049704: Fix doclint warnings from javax.swing.plaf.basic package, 2 of 7 Message-ID: <53BE47B7.80108@oracle.com> Hi Swing team, Please, review the fix for the issue: https://bugs.openjdk.java.net/browse/JDK-8049704 The fix is available at: http://cr.openjdk.java.net/~yan/8049704/webrev.00/ Andrei From petr.pchelko at oracle.com Thu Jul 10 08:07:47 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Thu, 10 Jul 2014 12:07:47 +0400 Subject: [9] Review Request: JDK-8049704: Fix doclint warnings from javax.swing.plaf.basic package, 2 of 7 In-Reply-To: <53BE47B7.80108@oracle.com> References: <53BE47B7.80108@oracle.com> Message-ID: <4FAB2CC6-09FA-4301-8E99-55CBCB2E2896@oracle.com> Hello, Andrei. Looks fine to me. With best regards. Petr. On 10 ???? 2014 ?., at 11:58, andrei.eremeev wrote: > Hi Swing team, > > Please, review the fix for the issue: > https://bugs.openjdk.java.net/browse/JDK-8049704 > > The fix is available at: > http://cr.openjdk.java.net/~yan/8049704/webrev.00/ > > Andrei > > From rocky.sloan at oracle.com Thu Jul 10 09:36:35 2014 From: rocky.sloan at oracle.com (Rocky Sloan) Date: Thu, 10 Jul 2014 02:36:35 -0700 Subject: Review Request for 8044281: Fix doclint warnings (missing javadoc @param and @return tags) in javax.swing.text - Part 1 of 2 Message-ID: <53BE5EA3.1010107@oracle.com> Hello, Could you please review Part 1 of the fix for the following bug: https://bugs.openjdk.java.net/browse/JDK-8044261 This is part 1 of 2. Webrev corresponding: http://cr.openjdk.java.net/~yan/8044261/webrev.01/ Change: Add missing @return and @param javadoc tags in javax.swing.text classes to fix doclint warnings. Thanks, - Rocky From alexandr.scherbatiy at oracle.com Thu Jul 10 10:21:19 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Thu, 10 Jul 2014 14:21:19 +0400 Subject: [9] Review request for 8049533 SwingUtilities.convertMouseEvent misses MouseWheelEvent.preciseWheelRotation Message-ID: <53BE691F.9070406@oracle.com> Hello, Could you review the fix: bug: https://bugs.openjdk.java.net/browse/JDK-8049533 webrev: http://cr.openjdk.java.net/~alexsch/8049533/webrev.00 The preciseWheelRotation field copying is missed in the SwingUtilities.convertMouseEvent(...) method. Thanks, Alexandr. From Sergey.Bylokhov at oracle.com Thu Jul 10 10:34:44 2014 From: Sergey.Bylokhov at oracle.com (Sergey Bylokhov) Date: Thu, 10 Jul 2014 14:34:44 +0400 Subject: [9] Review request for 8049533 SwingUtilities.convertMouseEvent misses MouseWheelEvent.preciseWheelRotation In-Reply-To: <53BE691F.9070406@oracle.com> References: <53BE691F.9070406@oracle.com> Message-ID: <53BE6C44.5000101@oracle.com> Hi, Alexander. Same fix should be applied to LWComponentPeer.createDelegateEvent(), and probably to ResizeBox.mouseWheelMoved. Please check all place where getWheelRotation is used. On 10.07.2014 14:21, Alexander Scherbatiy wrote: > > Hello, > > Could you review the fix: > bug: https://bugs.openjdk.java.net/browse/JDK-8049533 > webrev: http://cr.openjdk.java.net/~alexsch/8049533/webrev.00 > > > The preciseWheelRotation field copying is missed in the > SwingUtilities.convertMouseEvent(...) method. > > Thanks, > Alexandr. > -- Best regards, Sergey. From petr.pchelko at oracle.com Thu Jul 10 10:39:54 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Thu, 10 Jul 2014 14:39:54 +0400 Subject: Review Request for 8044281: Fix doclint warnings (missing javadoc @param and @return tags) in javax.swing.text - Part 1 of 2 In-Reply-To: <53BE5EA3.1010107@oracle.com> References: <53BE5EA3.1010107@oracle.com> Message-ID: <8985648C-97B0-490B-9202-04137624CA5B@oracle.com> Hello, Rocky. A couple of comments. 1. Please control the correct indentation of the second line of the @param/@return tag descriptions. You have many places where it's incorrect. 2. Please use @code instead of 3. AbstractWriter - no need to mention variable names in the javadoc. Please remove it. 4. AbstractWriter:374 - better to say {@code true} if the lines will be wrapped, {@code false} otherwise. Also please remove the last line of the doc. 5. The indentation of @param comments is incorrect. You have: > * @param chars character array containing content to write > * @param startIndex offset in the array to start writing from; > * 0 starts at the beginning > * @param length number of characters to write And you should have: > * @param chars character array containing content to write > * @param startIndex offset in the array to start writing from; > * 0 starts at the beginning > * @param length number of characters to write 6. AsyncBoxView:451 - it's not a boolean! With best regards. Petr. On 10 ???? 2014 ?., at 13:36, Rocky Sloan wrote: > Hello, > > Could you please review Part 1 of the fix for the following bug: > https://bugs.openjdk.java.net/browse/JDK-8044261 > > This is part 1 of 2. > > Webrev corresponding: > http://cr.openjdk.java.net/~yan/8044261/webrev.01/ > > Change: > Add missing @return and @param javadoc tags in javax.swing.text classes to fix doclint warnings. > > Thanks, > > - Rocky > From andrei.eremeev at oracle.com Thu Jul 10 11:29:45 2014 From: andrei.eremeev at oracle.com (andrei.eremeev) Date: Thu, 10 Jul 2014 15:29:45 +0400 Subject: [9] Review Request: JDK-8049808: Fix doclint warnings from javax.swing.plaf.basic package, 3 of 7 Message-ID: <53BE7929.6050509@oracle.com> Hi Swing team, Please, review the fix for the issue: https://bugs.openjdk.java.net/browse/JDK-8049808 The fix is available at: http://cr.openjdk.java.net/~yan/8049808/ Andrei From petr.pchelko at oracle.com Thu Jul 10 12:03:25 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Thu, 10 Jul 2014 16:03:25 +0400 Subject: [9] Review Request: JDK-8049808: Fix doclint warnings from javax.swing.plaf.basic package, 3 of 7 In-Reply-To: <53BE7929.6050509@oracle.com> References: <53BE7929.6050509@oracle.com> Message-ID: Hello, Andrei. BasicBorders:353 - typo, the constructor constructs and not draws. BasicBorders:442 - need an empty line BasicListUI - what the {JList} construct is intended to mean? You forgot @code? BasicListUI:247 - forgot @code BasicListUI:1621 - same here BasicMenuItemUI:481 @return what? With best regards. Petr. On 10 ???? 2014 ?., at 15:29, andrei.eremeev wrote: > Hi Swing team, > > Please, review the fix for the issue: > https://bugs.openjdk.java.net/browse/JDK-8049808 > > The fix is available at: > http://cr.openjdk.java.net/~yan/8049808/ > > > Andrei From andrei.eremeev at oracle.com Thu Jul 10 12:58:04 2014 From: andrei.eremeev at oracle.com (andrei.eremeev) Date: Thu, 10 Jul 2014 16:58:04 +0400 Subject: [9] Review Request: JDK-8049808: Fix doclint warnings from javax.swing.plaf.basic package, 3 of 7 In-Reply-To: References: <53BE7929.6050509@oracle.com> Message-ID: <53BE8DDC.90505@oracle.com> Fixed. http://cr.openjdk.java.net/~yan/8049808/webrev.01/ Andrei On 07/10/2014 04:03 PM, Petr Pchelko wrote: > Hello, Andrei. > > BasicBorders:353 - typo, the constructor constructs and not draws. > BasicBorders:442 - need an empty line > BasicListUI - what the {JList} construct is intended to mean? You forgot @code? > BasicListUI:247 - forgot @code > BasicListUI:1621 - same here > BasicMenuItemUI:481 @return what? > > With best regards. Petr. > > On 10 ???? 2014 ?., at 15:29, andrei.eremeev wrote: > >> Hi Swing team, >> >> Please, review the fix for the issue: >> https://bugs.openjdk.java.net/browse/JDK-8049808 >> >> The fix is available at: >> http://cr.openjdk.java.net/~yan/8049808/ >> >> >> Andrei From petr.pchelko at oracle.com Thu Jul 10 13:05:16 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Thu, 10 Jul 2014 17:05:16 +0400 Subject: [9] Review Request: JDK-8049808: Fix doclint warnings from javax.swing.plaf.basic package, 3 of 7 In-Reply-To: <53BE8DDC.90505@oracle.com> References: <53BE7929.6050509@oracle.com> <53BE8DDC.90505@oracle.com> Message-ID: <9A386DC5-DF7B-4D77-8A12-E1CD2D0AA361@oracle.com> > Fixed. No you didn't :) > http://cr.openjdk.java.net/~yan/8049808/webrev.01/ Looks like you've uploaded the exact same webrev. With best regards. Petr. On 10 ???? 2014 ?., at 16:58, andrei.eremeev wrote: > Fixed. > http://cr.openjdk.java.net/~yan/8049808/webrev.01/ > > Andrei > > On 07/10/2014 04:03 PM, Petr Pchelko wrote: >> Hello, Andrei. >> >> BasicBorders:353 - typo, the constructor constructs and not draws. >> BasicBorders:442 - need an empty line >> BasicListUI - what the {JList} construct is intended to mean? You forgot @code? >> BasicListUI:247 - forgot @code >> BasicListUI:1621 - same here >> BasicMenuItemUI:481 @return what? >> >> With best regards. Petr. >> >> On 10 ???? 2014 ?., at 15:29, andrei.eremeev wrote: >> >>> Hi Swing team, >>> >>> Please, review the fix for the issue: >>> https://bugs.openjdk.java.net/browse/JDK-8049808 >>> >>> The fix is available at: >>> http://cr.openjdk.java.net/~yan/8049808/ >>> >>> >>> Andrei > From andrei.eremeev at oracle.com Thu Jul 10 13:12:47 2014 From: andrei.eremeev at oracle.com (andrei.eremeev) Date: Thu, 10 Jul 2014 17:12:47 +0400 Subject: [9] Review Request: JDK-8049808: Fix doclint warnings from javax.swing.plaf.basic package, 3 of 7 In-Reply-To: <9A386DC5-DF7B-4D77-8A12-E1CD2D0AA361@oracle.com> References: <53BE7929.6050509@oracle.com> <53BE8DDC.90505@oracle.com> <9A386DC5-DF7B-4D77-8A12-E1CD2D0AA361@oracle.com> Message-ID: <53BE914F.6000100@oracle.com> Ok. http://cr.openjdk.java.net/~yan/8049808/webrev.02/ Andrei On 07/10/2014 05:05 PM, Petr Pchelko wrote: >> Fixed. > No you didn't :) > >> http://cr.openjdk.java.net/~yan/8049808/webrev.01/ > Looks like you've uploaded the exact same webrev. > > With best regards. Petr. > > On 10 ???? 2014 ?., at 16:58, andrei.eremeev wrote: > >> Fixed. >> http://cr.openjdk.java.net/~yan/8049808/webrev.01/ >> >> Andrei >> >> On 07/10/2014 04:03 PM, Petr Pchelko wrote: >>> Hello, Andrei. >>> >>> BasicBorders:353 - typo, the constructor constructs and not draws. >>> BasicBorders:442 - need an empty line >>> BasicListUI - what the {JList} construct is intended to mean? You forgot @code? >>> BasicListUI:247 - forgot @code >>> BasicListUI:1621 - same here >>> BasicMenuItemUI:481 @return what? >>> >>> With best regards. Petr. >>> >>> On 10 ???? 2014 ?., at 15:29, andrei.eremeev wrote: >>> >>>> Hi Swing team, >>>> >>>> Please, review the fix for the issue: >>>> https://bugs.openjdk.java.net/browse/JDK-8049808 >>>> >>>> The fix is available at: >>>> http://cr.openjdk.java.net/~yan/8049808/ >>>> >>>> >>>> Andrei From petr.pchelko at oracle.com Thu Jul 10 13:18:02 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Thu, 10 Jul 2014 17:18:02 +0400 Subject: [9] Review Request: JDK-8049808: Fix doclint warnings from javax.swing.plaf.basic package, 3 of 7 In-Reply-To: <53BE914F.6000100@oracle.com> References: <53BE7929.6050509@oracle.com> <53BE8DDC.90505@oracle.com> <9A386DC5-DF7B-4D77-8A12-E1CD2D0AA361@oracle.com> <53BE914F.6000100@oracle.com> Message-ID: <0685B5A4-63C6-4C32-9EF4-CE40BD2BDE36@oracle.com> Hello, Andrei. The fix looks good. With best regards. Petr. On 10 ???? 2014 ?., at 17:12, andrei.eremeev wrote: > Ok. > http://cr.openjdk.java.net/~yan/8049808/webrev.02/ > > Andrei > > On 07/10/2014 05:05 PM, Petr Pchelko wrote: >>> Fixed. >> No you didn't :) >> >>> http://cr.openjdk.java.net/~yan/8049808/webrev.01/ >> Looks like you've uploaded the exact same webrev. >> >> With best regards. Petr. >> >> On 10 ???? 2014 ?., at 16:58, andrei.eremeev wrote: >> >>> Fixed. >>> http://cr.openjdk.java.net/~yan/8049808/webrev.01/ >>> >>> Andrei >>> >>> On 07/10/2014 04:03 PM, Petr Pchelko wrote: >>>> Hello, Andrei. >>>> >>>> BasicBorders:353 - typo, the constructor constructs and not draws. >>>> BasicBorders:442 - need an empty line >>>> BasicListUI - what the {JList} construct is intended to mean? You forgot @code? >>>> BasicListUI:247 - forgot @code >>>> BasicListUI:1621 - same here >>>> BasicMenuItemUI:481 @return what? >>>> >>>> With best regards. Petr. >>>> >>>> On 10 ???? 2014 ?., at 15:29, andrei.eremeev wrote: >>>> >>>>> Hi Swing team, >>>>> >>>>> Please, review the fix for the issue: >>>>> https://bugs.openjdk.java.net/browse/JDK-8049808 >>>>> >>>>> The fix is available at: >>>>> http://cr.openjdk.java.net/~yan/8049808/ >>>>> >>>>> >>>>> Andrei > From andrei.eremeev at oracle.com Thu Jul 10 13:16:46 2014 From: andrei.eremeev at oracle.com (andrei.eremeev) Date: Thu, 10 Jul 2014 17:16:46 +0400 Subject: [9] Review Request: JDK-8049808: Fix doclint warnings from javax.swing.plaf.basic package, 3 of 7 In-Reply-To: <0685B5A4-63C6-4C32-9EF4-CE40BD2BDE36@oracle.com> References: <53BE7929.6050509@oracle.com> <53BE8DDC.90505@oracle.com> <9A386DC5-DF7B-4D77-8A12-E1CD2D0AA361@oracle.com> <53BE914F.6000100@oracle.com> <0685B5A4-63C6-4C32-9EF4-CE40BD2BDE36@oracle.com> Message-ID: <53BE923E.1070208@oracle.com> Thanks for review! Andrei On 07/10/2014 05:18 PM, Petr Pchelko wrote: > Hello, Andrei. > > The fix looks good. > > With best regards. Petr. > > On 10 ???? 2014 ?., at 17:12, andrei.eremeev wrote: > >> Ok. >> http://cr.openjdk.java.net/~yan/8049808/webrev.02/ >> >> Andrei >> >> On 07/10/2014 05:05 PM, Petr Pchelko wrote: >>>> Fixed. >>> No you didn't :) >>> >>>> http://cr.openjdk.java.net/~yan/8049808/webrev.01/ >>> Looks like you've uploaded the exact same webrev. >>> >>> With best regards. Petr. >>> >>> On 10 ???? 2014 ?., at 16:58, andrei.eremeev wrote: >>> >>>> Fixed. >>>> http://cr.openjdk.java.net/~yan/8049808/webrev.01/ >>>> >>>> Andrei >>>> >>>> On 07/10/2014 04:03 PM, Petr Pchelko wrote: >>>>> Hello, Andrei. >>>>> >>>>> BasicBorders:353 - typo, the constructor constructs and not draws. >>>>> BasicBorders:442 - need an empty line >>>>> BasicListUI - what the {JList} construct is intended to mean? You forgot @code? >>>>> BasicListUI:247 - forgot @code >>>>> BasicListUI:1621 - same here >>>>> BasicMenuItemUI:481 @return what? >>>>> >>>>> With best regards. Petr. >>>>> >>>>> On 10 ???? 2014 ?., at 15:29, andrei.eremeev wrote: >>>>> >>>>>> Hi Swing team, >>>>>> >>>>>> Please, review the fix for the issue: >>>>>> https://bugs.openjdk.java.net/browse/JDK-8049808 >>>>>> >>>>>> The fix is available at: >>>>>> http://cr.openjdk.java.net/~yan/8049808/ >>>>>> >>>>>> >>>>>> Andrei From alexandr.scherbatiy at oracle.com Thu Jul 10 14:32:44 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Thu, 10 Jul 2014 18:32:44 +0400 Subject: [9] Review request for 8049533 SwingUtilities.convertMouseEvent misses MouseWheelEvent.preciseWheelRotation In-Reply-To: <53BE6C44.5000101@oracle.com> References: <53BE691F.9070406@oracle.com> <53BE6C44.5000101@oracle.com> Message-ID: <53BEA40C.1080009@oracle.com> Could you review the updated fix: http://cr.openjdk.java.net/~alexsch/8049533/webrev.01 The preciseWheelRotation field is copied in the LWComponentPeer.createDelegateEvent() and ResizeBox.mouseWheelMoved() methods. Thanks, Alexandr. On 7/10/2014 2:34 PM, Sergey Bylokhov wrote: > Hi, Alexander. > Same fix should be applied to LWComponentPeer.createDelegateEvent(), > and probably to ResizeBox.mouseWheelMoved. Please check all place > where getWheelRotation is used. > > On 10.07.2014 14:21, Alexander Scherbatiy wrote: >> >> Hello, >> >> Could you review the fix: >> bug: https://bugs.openjdk.java.net/browse/JDK-8049533 >> webrev: http://cr.openjdk.java.net/~alexsch/8049533/webrev.00 >> >> >> The preciseWheelRotation field copying is missed in the >> SwingUtilities.convertMouseEvent(...) method. >> >> Thanks, >> Alexandr. >> > > From petr.pchelko at oracle.com Thu Jul 10 14:45:06 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Thu, 10 Jul 2014 18:45:06 +0400 Subject: [9] Review request for 8049533 SwingUtilities.convertMouseEvent misses MouseWheelEvent.preciseWheelRotation In-Reply-To: <53BEA40C.1080009@oracle.com> References: <53BE691F.9070406@oracle.com> <53BE6C44.5000101@oracle.com> <53BEA40C.1080009@oracle.com> Message-ID: <8AF7562C-81F4-4A5C-B838-74D7EB957AEA@oracle.com> Hello, Alexander. The .01 version looks good. With best regards. Petr. On 10 ???? 2014 ?., at 18:32, Alexander Scherbatiy wrote: > > Could you review the updated fix: > http://cr.openjdk.java.net/~alexsch/8049533/webrev.01 > > The preciseWheelRotation field is copied in the LWComponentPeer.createDelegateEvent() and ResizeBox.mouseWheelMoved() methods. > > Thanks, > Alexandr. > > On 7/10/2014 2:34 PM, Sergey Bylokhov wrote: >> Hi, Alexander. >> Same fix should be applied to LWComponentPeer.createDelegateEvent(), and probably to ResizeBox.mouseWheelMoved. Please check all place where getWheelRotation is used. >> >> On 10.07.2014 14:21, Alexander Scherbatiy wrote: >>> >>> Hello, >>> >>> Could you review the fix: >>> bug: https://bugs.openjdk.java.net/browse/JDK-8049533 >>> webrev: http://cr.openjdk.java.net/~alexsch/8049533/webrev.00 >>> >>> >>> The preciseWheelRotation field copying is missed in the SwingUtilities.convertMouseEvent(...) method. >>> >>> Thanks, >>> Alexandr. >>> >> >> > From alexandr.scherbatiy at oracle.com Thu Jul 10 14:54:29 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Thu, 10 Jul 2014 18:54:29 +0400 Subject: [9] Review Request: JDK-8049704: Fix doclint warnings from javax.swing.plaf.basic package, 2 of 7 In-Reply-To: <53BE47B7.80108@oracle.com> References: <53BE47B7.80108@oracle.com> Message-ID: <53BEA925.5080608@oracle.com> The fix looks good to me. Thanks, Alexandr. On 7/10/2014 11:58 AM, andrei.eremeev wrote: > Hi Swing team, > > Please, review the fix for the issue: > https://bugs.openjdk.java.net/browse/JDK-8049704 > > The fix is available at: > http://cr.openjdk.java.net/~yan/8049704/webrev.00/ > > Andrei > From alexandr.scherbatiy at oracle.com Thu Jul 10 14:58:14 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Thu, 10 Jul 2014 18:58:14 +0400 Subject: [9] Review request for 8049533 SwingUtilities.convertMouseEvent misses MouseWheelEvent.preciseWheelRotation In-Reply-To: <8AF7562C-81F4-4A5C-B838-74D7EB957AEA@oracle.com> References: <53BE691F.9070406@oracle.com> <53BE6C44.5000101@oracle.com> <53BEA40C.1080009@oracle.com> <8AF7562C-81F4-4A5C-B838-74D7EB957AEA@oracle.com> Message-ID: <53BEAA06.1060306@oracle.com> Could you review the updated version: http://cr.openjdk.java.net/~alexsch/8049533/webrev.02/ The xAbs and yAbs fields are also copied in the LWComponentPeer.createDelegateEvent() and ResizeBox.mouseWheelMoved() methods. Thanks, Alexandr. On 7/10/2014 6:45 PM, Petr Pchelko wrote: > Hello, Alexander. > > The .01 version looks good. > > With best regards. Petr. > > On 10 ???? 2014 ?., at 18:32, Alexander Scherbatiy wrote: > >> Could you review the updated fix: >> http://cr.openjdk.java.net/~alexsch/8049533/webrev.01 >> >> The preciseWheelRotation field is copied in the LWComponentPeer.createDelegateEvent() and ResizeBox.mouseWheelMoved() methods. >> >> Thanks, >> Alexandr. >> >> On 7/10/2014 2:34 PM, Sergey Bylokhov wrote: >>> Hi, Alexander. >>> Same fix should be applied to LWComponentPeer.createDelegateEvent(), and probably to ResizeBox.mouseWheelMoved. Please check all place where getWheelRotation is used. >>> >>> On 10.07.2014 14:21, Alexander Scherbatiy wrote: >>>> Hello, >>>> >>>> Could you review the fix: >>>> bug: https://bugs.openjdk.java.net/browse/JDK-8049533 >>>> webrev: http://cr.openjdk.java.net/~alexsch/8049533/webrev.00 >>>> >>>> >>>> The preciseWheelRotation field copying is missed in the SwingUtilities.convertMouseEvent(...) method. >>>> >>>> Thanks, >>>> Alexandr. >>>> >>> From alexandr.scherbatiy at oracle.com Thu Jul 10 15:04:53 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Thu, 10 Jul 2014 19:04:53 +0400 Subject: [9] Review Request: JDK-8049808: Fix doclint warnings from javax.swing.plaf.basic package, 3 of 7 In-Reply-To: <53BE923E.1070208@oracle.com> References: <53BE7929.6050509@oracle.com> <53BE8DDC.90505@oracle.com> <9A386DC5-DF7B-4D77-8A12-E1CD2D0AA361@oracle.com> <53BE914F.6000100@oracle.com> <0685B5A4-63C6-4C32-9EF4-CE40BD2BDE36@oracle.com> <53BE923E.1070208@oracle.com> Message-ID: <53BEAB95.3060506@oracle.com> The fix looks good to me. Thanks, Alexandr. On 7/10/2014 5:16 PM, andrei.eremeev wrote: > Thanks for review! > > Andrei > > On 07/10/2014 05:18 PM, Petr Pchelko wrote: >> Hello, Andrei. >> >> The fix looks good. >> >> With best regards. Petr. >> >> On 10 ???? 2014 ?., at 17:12, andrei.eremeev >> wrote: >> >>> Ok. >>> http://cr.openjdk.java.net/~yan/8049808/webrev.02/ >>> >>> Andrei >>> >>> On 07/10/2014 05:05 PM, Petr Pchelko wrote: >>>>> Fixed. >>>> No you didn't :) >>>> >>>>> http://cr.openjdk.java.net/~yan/8049808/webrev.01/ >>>> Looks like you've uploaded the exact same webrev. >>>> >>>> With best regards. Petr. >>>> >>>> On 10 ???? 2014 ?., at 16:58, andrei.eremeev >>>> wrote: >>>> >>>>> Fixed. >>>>> http://cr.openjdk.java.net/~yan/8049808/webrev.01/ >>>>> >>>>> Andrei >>>>> >>>>> On 07/10/2014 04:03 PM, Petr Pchelko wrote: >>>>>> Hello, Andrei. >>>>>> >>>>>> BasicBorders:353 - typo, the constructor constructs and not draws. >>>>>> BasicBorders:442 - need an empty line >>>>>> BasicListUI - what the {JList} construct is intended to mean? You >>>>>> forgot @code? >>>>>> BasicListUI:247 - forgot @code >>>>>> BasicListUI:1621 - same here >>>>>> BasicMenuItemUI:481 @return what? >>>>>> >>>>>> With best regards. Petr. >>>>>> >>>>>> On 10 ???? 2014 ?., at 15:29, andrei.eremeev >>>>>> wrote: >>>>>> >>>>>>> Hi Swing team, >>>>>>> >>>>>>> Please, review the fix for the issue: >>>>>>> https://bugs.openjdk.java.net/browse/JDK-8049808 >>>>>>> >>>>>>> The fix is available at: >>>>>>> http://cr.openjdk.java.net/~yan/8049808/ >>>>>>> >>>>>>> >>>>>>> Andrei > From alexey.ivanov at oracle.com Thu Jul 10 15:59:41 2014 From: alexey.ivanov at oracle.com (Alexey Ivanov) Date: Thu, 10 Jul 2014 19:59:41 +0400 Subject: [7u-dev] Review request for JDK-8046559: NPE when changing Windows theme Message-ID: <53BEB86D.3080908@oracle.com> Hi AWT, Swing teams, Could you please review the backport of JDK-8046559 to jdk7: bug: https://bugs.openjdk.java.net/browse/JDK-8046559 webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk7/webrev.00/ Changes between jdk9 and jdk7: I replaced labmda expression in WToolkit.java with anonymous class. It is the only change from the previous webrev: http://mail.openjdk.java.net/pipermail/awt-dev/2014-July/008147.html http://mail.openjdk.java.net/pipermail/swing-dev/2014-July/003657.html Latest jdk9 webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.01/ The information is below is copied from jdk9 review for the sake of completeness. Problem description: When changing Windows themes from a theme with visual styles (Windows Aero or Windows Basic) to a classic one, NullPointerException could be thrown from Swing code during component tree validation, or InternalError could be thrown during component painting. Root cause: Windows theme data are accessed via XPStyle and ThemeReader. When the theme is switched to a classic one, theme handles become unavailable, and theme data cannot be accessed any more. The change in theme is posted to EDT; at the same time, the UI often needs to repaint before the theme change is completely handled in Swing. This leads to NPE and InternalError as the code tries to access the data that has become unavailable. The fix: Windows desktop properties are updated right on Windows Toolkit thread, and the value of "win.xpstyle.themeActive" is stored in ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop properties are delivered either synchronously on EDT or asynchronously via DesktopPropertyChangeSupport, as it used to be. Getters in XPStyle class check for null values and return dummy defaults if ThemeReader returned null. SkinPainters also check whether theming is still available before asking ThemeReader to paint. Access to XPStyle.xp instance is blocked as soon as user switches themes. The object will be cleaned when the corresponding PropertyChangeEvent is handled by Swing. This new version of the fix addresses issues found with the initial submission of JDK-8039383 fix: - JDK-8046239: Build failure in 9-client on all non-Windows platforms - JDK-8046391: Hang displaying JFileChooser with Windows L&F See also http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ Regression test: No regression test is provided due to its complexity. Whether NullPointerException or InternalError are thrown depends on the order of event handling, sometimes exceptions do not occur when changing theme of visual styles enabled theme to a classic theme. I included regression test for hang in JFileChooser, JDK-8046391. Thank you, Alexey. -------------- next part -------------- An HTML attachment was scrubbed... URL: From petr.pchelko at oracle.com Thu Jul 10 16:42:02 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Thu, 10 Jul 2014 20:42:02 +0400 Subject: [9] Review request for 8049533 SwingUtilities.convertMouseEvent misses MouseWheelEvent.preciseWheelRotation In-Reply-To: <53BEAA06.1060306@oracle.com> References: <53BE691F.9070406@oracle.com> <53BE6C44.5000101@oracle.com> <53BEA40C.1080009@oracle.com> <8AF7562C-81F4-4A5C-B838-74D7EB957AEA@oracle.com> <53BEAA06.1060306@oracle.com> Message-ID: Hello, Alexander. Still looks good to me. With best regards. Petr. > On Jul 10, 2014, at 6:58 PM, Alexander Scherbatiy wrote: > > > Could you review the updated version: > http://cr.openjdk.java.net/~alexsch/8049533/webrev.02/ > > The xAbs and yAbs fields are also copied in the LWComponentPeer.createDelegateEvent() and ResizeBox.mouseWheelMoved() methods. > > Thanks, > Alexandr. > > On 7/10/2014 6:45 PM, Petr Pchelko wrote: >> Hello, Alexander. >> >> The .01 version looks good. >> >> With best regards. Petr. >> >> On 10 ???? 2014 ?., at 18:32, Alexander Scherbatiy wrote: >> >>> Could you review the updated fix: >>> http://cr.openjdk.java.net/~alexsch/8049533/webrev.01 >>> >>> The preciseWheelRotation field is copied in the LWComponentPeer.createDelegateEvent() and ResizeBox.mouseWheelMoved() methods. >>> >>> Thanks, >>> Alexandr. >>> >>> On 7/10/2014 2:34 PM, Sergey Bylokhov wrote: >>>> Hi, Alexander. >>>> Same fix should be applied to LWComponentPeer.createDelegateEvent(), and probably to ResizeBox.mouseWheelMoved. Please check all place where getWheelRotation is used. >>>> >>>> On 10.07.2014 14:21, Alexander Scherbatiy wrote: >>>>> Hello, >>>>> >>>>> Could you review the fix: >>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8049533 >>>>> webrev: http://cr.openjdk.java.net/~alexsch/8049533/webrev.00 >>>>> >>>>> >>>>> The preciseWheelRotation field copying is missed in the SwingUtilities.convertMouseEvent(...) method. >>>>> >>>>> Thanks, >>>>> Alexandr. >>>>> >>>> > From anthony.petrov at oracle.com Thu Jul 10 21:43:05 2014 From: anthony.petrov at oracle.com (Anthony Petrov) Date: Fri, 11 Jul 2014 01:43:05 +0400 Subject: [7u-dev] Review request for JDK-8046559: NPE when changing Windows theme In-Reply-To: <53BEB86D.3080908@oracle.com> References: <53BEB86D.3080908@oracle.com> Message-ID: <53BF08E9.5090003@oracle.com> Hi Alexey, I skimmed through the changes and they look fine to me. +1. -- best regards, Anthony On 7/10/2014 7:59 PM, Alexey Ivanov wrote: > Hi AWT, Swing teams, > > Could you please review the backport of JDK-8046559 to jdk7: > bug: https://bugs.openjdk.java.net/browse/JDK-8046559 > webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk7/webrev.00/ > > > Changes between jdk9 and jdk7: > > I replaced labmda expression in WToolkit.java with anonymous class. > It is the only change from the previous webrev: > http://mail.openjdk.java.net/pipermail/awt-dev/2014-July/008147.html > http://mail.openjdk.java.net/pipermail/swing-dev/2014-July/003657.html > > > Latest jdk9 webrev: > http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.01/ > > > The information is below is copied from jdk9 review for the sake of > completeness. > > > Problem description: > When changing Windows themes from a theme with visual styles (Windows > Aero or Windows Basic) to a classic one, NullPointerException could be > thrown from Swing code during component tree validation, or > InternalError could be thrown during component painting. > > Root cause: > Windows theme data are accessed via XPStyle and ThemeReader. When the > theme is switched to a classic one, theme handles become unavailable, > and theme data cannot be accessed any more. The change in theme is > posted to EDT; at the same time, the UI often needs to repaint before > the theme change is completely handled in Swing. This leads to NPE and > InternalError as the code tries to access the data that has become > unavailable. > > The fix: > Windows desktop properties are updated right on Windows Toolkit thread, > and the value of "win.xpstyle.themeActive" is stored in > ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop > properties are delivered either synchronously on EDT or asynchronously > via DesktopPropertyChangeSupport, as it used to be. > > Getters in XPStyle class check for null values and return dummy defaults > if ThemeReader returned null. SkinPainters also check whether theming is > still available before asking ThemeReader to paint. > > Access to XPStyle.xp instance is blocked as soon as user switches > themes. The object will be cleaned when the corresponding > PropertyChangeEvent is handled by Swing. > > > This new version of the fix addresses issues found with the initial > submission of JDK-8039383 fix: > - JDK-8046239: Build failure in 9-client on all non-Windows platforms > - JDK-8046391: Hang displaying JFileChooser with Windows L&F > > See also > http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html > and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ > > > Regression test: > No regression test is provided due to its complexity. Whether > NullPointerException or InternalError are thrown depends on the order of > event handling, sometimes exceptions do not occur when changing theme of > visual styles enabled theme to a classic theme. > > I included regression test for hang in JFileChooser, JDK-8046391. > > > Thank you, > Alexey. From philip.race at oracle.com Thu Jul 10 22:02:20 2014 From: philip.race at oracle.com (Phil Race) Date: Thu, 10 Jul 2014 15:02:20 -0700 Subject: JDK 9 RFR of JDK-8049797: Fix raw and unchecked lint warnings in javax.swing.SortingFocusTraversalPolicy In-Reply-To: <53BDCAE9.8050807@oracle.com> References: <53BDCAE9.8050807@oracle.com> Message-ID: <53BF0D6C.1080801@oracle.com> Looks good. -phil. On 7/9/2014 4:06 PM, Joe Darcy wrote: > Hello, > > A recent change in swing added back some raw / unchecked warnings: > > JDK-8049797: Fix raw and unchecked lint warnings in > javax.swing.SortingFocusTraversalPolicy > > The patch below removes them. > > Thanks, > > -Joe > > diff -r cc87c0d62651 > src/share/classes/javax/swing/SortingFocusTraversalPolicy.java > --- a/src/share/classes/javax/swing/SortingFocusTraversalPolicy.java > Wed Jul 09 17:11:53 2014 +0400 > +++ b/src/share/classes/javax/swing/SortingFocusTraversalPolicy.java > Wed Jul 09 14:48:54 2014 -0700 > @@ -109,11 +109,12 @@ > AccessController.doPrivileged(new > PrivilegedAction() { > public Method run() { > try { > - Class c = Class.forName("java.util.Arrays"); > - Method m = > c.getDeclaredMethod("legacyMergeSort", new Class[]{Object[].class, > Comparator.class}); > + Method m = > java.util.Arrays.class.getDeclaredMethod("legacyMergeSort", > + new Class[]{Object[].class, > + Comparator.class}); > m.setAccessible(true); > return m; > - } catch (ClassNotFoundException | > NoSuchMethodException e) { > + } catch (NoSuchMethodException e) { > // using default sorting algo > return null; > } > From petr.pchelko at oracle.com Fri Jul 11 05:47:49 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Fri, 11 Jul 2014 09:47:49 +0400 Subject: [7u-dev] Review request for JDK-8046559: NPE when changing Windows theme In-Reply-To: <53BF08E9.5090003@oracle.com> References: <53BEB86D.3080908@oracle.com> <53BF08E9.5090003@oracle.com> Message-ID: <792FFA70-C541-4BC9-8A75-E97EF16916B2@oracle.com> Hello, Alexey. Looks OK to me too. With best regards. Petr. > On Jul 11, 2014, at 1:43 AM, Anthony Petrov wrote: > > Hi Alexey, > > I skimmed through the changes and they look fine to me. +1. > > -- > best regards, > Anthony > > On 7/10/2014 7:59 PM, Alexey Ivanov wrote: >> Hi AWT, Swing teams, >> >> Could you please review the backport of JDK-8046559 to jdk7: >> bug: https://bugs.openjdk.java.net/browse/JDK-8046559 >> webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk7/webrev.00/ >> >> >> Changes between jdk9 and jdk7: >> >> I replaced labmda expression in WToolkit.java with anonymous class. >> It is the only change from the previous webrev: >> http://mail.openjdk.java.net/pipermail/awt-dev/2014-July/008147.html >> http://mail.openjdk.java.net/pipermail/swing-dev/2014-July/003657.html >> >> >> Latest jdk9 webrev: >> http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.01/ >> >> >> The information is below is copied from jdk9 review for the sake of >> completeness. >> >> >> Problem description: >> When changing Windows themes from a theme with visual styles (Windows >> Aero or Windows Basic) to a classic one, NullPointerException could be >> thrown from Swing code during component tree validation, or >> InternalError could be thrown during component painting. >> >> Root cause: >> Windows theme data are accessed via XPStyle and ThemeReader. When the >> theme is switched to a classic one, theme handles become unavailable, >> and theme data cannot be accessed any more. The change in theme is >> posted to EDT; at the same time, the UI often needs to repaint before >> the theme change is completely handled in Swing. This leads to NPE and >> InternalError as the code tries to access the data that has become >> unavailable. >> >> The fix: >> Windows desktop properties are updated right on Windows Toolkit thread, >> and the value of "win.xpstyle.themeActive" is stored in >> ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop >> properties are delivered either synchronously on EDT or asynchronously >> via DesktopPropertyChangeSupport, as it used to be. >> >> Getters in XPStyle class check for null values and return dummy defaults >> if ThemeReader returned null. SkinPainters also check whether theming is >> still available before asking ThemeReader to paint. >> >> Access to XPStyle.xp instance is blocked as soon as user switches >> themes. The object will be cleaned when the corresponding >> PropertyChangeEvent is handled by Swing. >> >> >> This new version of the fix addresses issues found with the initial >> submission of JDK-8039383 fix: >> - JDK-8046239: Build failure in 9-client on all non-Windows platforms >> - JDK-8046391: Hang displaying JFileChooser with Windows L&F >> >> See also >> http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html >> and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ >> >> >> Regression test: >> No regression test is provided due to its complexity. Whether >> NullPointerException or InternalError are thrown depends on the order of >> event handling, sometimes exceptions do not occur when changing theme of >> visual styles enabled theme to a classic theme. >> >> I included regression test for hang in JFileChooser, JDK-8046391. >> >> >> Thank you, >> Alexey. From otaviopolianasantana at gmail.com Fri Jul 11 01:36:04 2014 From: otaviopolianasantana at gmail.com (=?UTF-8?Q?Ot=C3=A1vio_Gon=C3=A7alves_de_Santana?=) Date: Thu, 10 Jul 2014 22:36:04 -0300 Subject: RFR : 8049893 Replace uses of 'new Integer()' with appropriate alternative across client classes Message-ID: https://bugs.openjdk.java.net/browse/JDK-8049893 http://cr.openjdk.java.net/~prr/8049893/ -- Cheers!. Ot?vio Gon?alves de Santana blog: http://otaviosantana.blogspot.com.br/ twitter: http://twitter.com/otaviojava site: *http://about.me/otaviojava * 55 (11) 98255-3513 -------------- next part -------------- An HTML attachment was scrubbed... URL: From petr.pchelko at oracle.com Fri Jul 11 08:26:13 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Fri, 11 Jul 2014 12:26:13 +0400 Subject: RFR : 8049893 Replace uses of 'new Integer()' with appropriate alternative across client classes In-Reply-To: References: Message-ID: Hello, Ot?vio. JInternalFrame:2110 - Why did you add explicit boxing? Is auto boxing not good enough? JLayeredPane:299 - layerObj is unnecessary. Please inline it. BasicLookAndFeel - making ?shared Integers? and ?shared longs? is pointless after your fix. Please inline. With best regards. Petr. > On Jul 11, 2014, at 5:36 AM, Ot?vio Gon?alves de Santana wrote: > > https://bugs.openjdk.java.net/browse/JDK-8049893 > http://cr.openjdk.java.net/~prr/8049893/ > > -- > Cheers!. > > Ot?vio Gon?alves de Santana > > blog: http://otaviosantana.blogspot.com.br/ > twitter: http://twitter.com/otaviojava > site: http://about.me/otaviojava > 55 (11) 98255-3513 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrej.golovnin at gmail.com Fri Jul 11 09:00:10 2014 From: andrej.golovnin at gmail.com (Andrej Golovnin) Date: Fri, 11 Jul 2014 11:00:10 +0200 Subject: RFR : 8049893 Replace uses of 'new Integer()' with appropriate alternative across client classes In-Reply-To: References: Message-ID: Hi Petr, BasicLookAndFeel - making ?shared Integers? and ?shared longs? is pointless > after your fix. Please inline. > It's not pointless. 458 Integer fiveHundred = 500; 459 460 // *** Shared Longs 461 Long oneThousand = 1000L; 500 and 1000L are outside of the range [-127, 128]. Therefore they won't be cached. But this one: 676 Integer four = 4; can be indeed inlined. Best regards, Andrej Golovnin > > With best regards. Petr. > > On Jul 11, 2014, at 5:36 AM, Ot?vio Gon?alves de Santana < > otaviopolianasantana at gmail.com> wrote: > > https://bugs.openjdk.java.net/browse/JDK-8049893 > http://cr.openjdk.java.net/~prr/8049893/ > > -- > Cheers!. > > Ot?vio Gon?alves de Santana > > blog: http://otaviosantana.blogspot.com.br/ > twitter: http://twitter.com/otaviojava > site: *http://about.me/otaviojava * > 55 (11) 98255-3513 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From petr.pchelko at oracle.com Fri Jul 11 09:03:42 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Fri, 11 Jul 2014 13:03:42 +0400 Subject: RFR : 8049893 Replace uses of 'new Integer()' with appropriate alternative across client classes In-Reply-To: References: Message-ID: <9726643B-8650-4266-8C87-2489B2EE4874@oracle.com> > 500 and 1000L are outside of the range [-127, 128]. Therefore they won't be cached. Agreed, that?s what I didn?t think about. With best regards. Petr. > On Jul 11, 2014, at 1:00 PM, Andrej Golovnin wrote: > > Hi Petr, > > BasicLookAndFeel - making ?shared Integers? and ?shared longs? is pointless after your fix. Please inline. > > It's not pointless. > > 458 Integer fiveHundred = 500; > 459 > 460 // *** Shared Longs > 461 Long oneThousand = 1000L; > > 500 and 1000L are outside of the range [-127, 128]. Therefore they won't be cached. > > But this one: > > 676 Integer four = 4; > > can be indeed inlined. > > Best regards, > Andrej Golovnin > > > > With best regards. Petr. > >> On Jul 11, 2014, at 5:36 AM, Ot?vio Gon?alves de Santana wrote: >> >> https://bugs.openjdk.java.net/browse/JDK-8049893 >> http://cr.openjdk.java.net/~prr/8049893/ >> >> -- >> Cheers!. >> >> Ot?vio Gon?alves de Santana >> >> blog: http://otaviosantana.blogspot.com.br/ >> twitter: http://twitter.com/otaviojava >> site: http://about.me/otaviojava >> 55 (11) 98255-3513 >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From otaviopolianasantana at gmail.com Fri Jul 11 11:08:16 2014 From: otaviopolianasantana at gmail.com (=?UTF-8?Q?Ot=C3=A1vio_Gon=C3=A7alves_de_Santana?=) Date: Fri, 11 Jul 2014 08:08:16 -0300 Subject: RFR : 8049893 Replace uses of 'new Integer()' with appropriate alternative across client classes In-Reply-To: <9726643B-8650-4266-8C87-2489B2EE4874@oracle.com> References: <9726643B-8650-4266-8C87-2489B2EE4874@oracle.com> Message-ID: JInternalFrame Because it has a method, line 1285, with int, setLayer(int), so it will capture just to do boxing, so I forced the boxing to avoid this method and go directly to setLayer(Integer), line 1254. JlayeredPane Done. BasicLookAndFeel Integer four //fixed How was talked 500 is not in cached range. On Fri, Jul 11, 2014 at 6:03 AM, Petr Pchelko wrote: > 500 and 1000L are outside of the range [-127, 128]. Therefore they won't > be cached. > > Agreed, that?s what I didn?t think about. > > With best regards. Petr. > > On Jul 11, 2014, at 1:00 PM, Andrej Golovnin > wrote: > > Hi Petr, > > BasicLookAndFeel - making ?shared Integers? and ?shared longs? is >> pointless after your fix. Please inline. >> > > It's not pointless. > > 458 Integer fiveHundred = 500; > 459 > 460 // *** Shared Longs > 461 Long oneThousand = 1000L; > > 500 and 1000L are outside of the range [-127, 128]. Therefore they won't > be cached. > > But this one: > > 676 Integer four = 4; > > can be indeed inlined. > > Best regards, > Andrej Golovnin > > > >> >> With best regards. Petr. >> >> On Jul 11, 2014, at 5:36 AM, Ot?vio Gon?alves de Santana < >> otaviopolianasantana at gmail.com> wrote: >> >> https://bugs.openjdk.java.net/browse/JDK-8049893 >> http://cr.openjdk.java.net/~prr/8049893/ >> >> -- >> Cheers!. >> >> Ot?vio Gon?alves de Santana >> >> blog: http://otaviosantana.blogspot.com.br/ >> twitter: http://twitter.com/otaviojava >> site: *http://about.me/otaviojava * >> 55 (11) 98255-3513 >> >> >> > > -- Cheers!. Ot?vio Gon?alves de Santana blog: http://otaviosantana.blogspot.com.br/ twitter: http://twitter.com/otaviojava site: *http://about.me/otaviojava * 55 (11) 98255-3513 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- diff -r 2df45ac1bf49 src/share/classes/javax/swing/JLayeredPane.java --- a/src/share/classes/javax/swing/JLayeredPane.java Thu Jun 26 12:51:38 2014 -0700 +++ b/src/share/classes/javax/swing/JLayeredPane.java Fri Jul 11 07:47:29 2014 -0300 @@ -158,15 +158,15 @@ public class JLayeredPane extends JComponent implements Accessible { /// Watch the values in getObjectForLayer() /** Convenience object defining the Default layer. Equivalent to new Integer(0).*/ - public final static Integer DEFAULT_LAYER = new Integer(0); + public final static Integer DEFAULT_LAYER = 0; /** Convenience object defining the Palette layer. Equivalent to new Integer(100).*/ - public final static Integer PALETTE_LAYER = new Integer(100); + public final static Integer PALETTE_LAYER = 100; /** Convenience object defining the Modal layer. Equivalent to new Integer(200).*/ - public final static Integer MODAL_LAYER = new Integer(200); + public final static Integer MODAL_LAYER = 200; /** Convenience object defining the Popup layer. Equivalent to new Integer(300).*/ - public final static Integer POPUP_LAYER = new Integer(300); + public final static Integer POPUP_LAYER = 300; /** Convenience object defining the Drag layer. Equivalent to new Integer(400).*/ - public final static Integer DRAG_LAYER = new Integer(400); + public final static Integer DRAG_LAYER = 400; /** Convenience object defining the Frame Content layer. * This layer is normally only use to position the contentPane and menuBar * components of JFrame. @@ -293,10 +293,7 @@ */ public static void putLayer(JComponent c, int layer) { /// MAKE SURE THIS AND setLayer(Component c, int layer, int position) are SYNCED - Integer layerObj; - - layerObj = new Integer(layer); - c.putClientProperty(LAYER_PROPERTY, layerObj); + c.putClientProperty(LAYER_PROPERTY, layer); } /** Gets the layer property for a JComponent, it @@ -608,27 +605,20 @@ * @return an Integer object for that layer */ protected Integer getObjectForLayer(int layer) { - Integer layerObj; switch(layer) { case 0: - layerObj = DEFAULT_LAYER; - break; + return DEFAULT_LAYER; case 100: - layerObj = PALETTE_LAYER; - break; + return PALETTE_LAYER; case 200: - layerObj = MODAL_LAYER; - break; + return MODAL_LAYER; case 300: - layerObj = POPUP_LAYER; - break; + return POPUP_LAYER; case 400: - layerObj = DRAG_LAYER; - break; + return DRAG_LAYER; default: - layerObj = new Integer(layer); + return layer; } - return layerObj; } -------------- next part -------------- diff -r 2df45ac1bf49 src/share/classes/javax/swing/plaf/basic/BasicLookAndFeel.java --- a/src/share/classes/javax/swing/plaf/basic/BasicLookAndFeel.java Thu Jun 26 12:51:38 2014 -0700 +++ b/src/share/classes/javax/swing/plaf/basic/BasicLookAndFeel.java Fri Jul 11 07:47:29 2014 -0300 @@ -455,7 +455,7 @@ initResourceBundle(table); // *** Shared Integers - Integer fiveHundred = new Integer(500); + Integer fiveHundred = 500; // *** Shared Longs Long oneThousand = new Long(1000); @@ -673,7 +673,6 @@ Object editorMargin = threeInsets; Object caretBlinkRate = fiveHundred; - Integer four = new Integer(4); Object[] allAuditoryCues = new Object[] { "CheckBoxMenuItem.commandSound", @@ -714,7 +713,7 @@ "Button.highlight", controlLtHighlight, "Button.border", buttonBorder, "Button.margin", new InsetsUIResource(2, 14, 2, 14), - "Button.textIconGap", four, + "Button.textIconGap", 4, "Button.textShiftOffset", zero, "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", @@ -732,7 +731,7 @@ "ToggleButton.highlight", controlLtHighlight, "ToggleButton.border", buttonToggleBorder, "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14), - "ToggleButton.textIconGap", four, + "ToggleButton.textIconGap", 4, "ToggleButton.textShiftOffset", zero, "ToggleButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { @@ -749,7 +748,7 @@ "RadioButton.highlight", controlLtHighlight, "RadioButton.border", radioButtonBorder, "RadioButton.margin", twoInsets, - "RadioButton.textIconGap", four, + "RadioButton.textIconGap", 4, "RadioButton.textShiftOffset", zero, "RadioButton.icon", radioButtonIcon, "RadioButton.focusInputMap", @@ -764,7 +763,7 @@ "CheckBox.foreground", controlText, "CheckBox.border", radioButtonBorder, "CheckBox.margin", twoInsets, - "CheckBox.textIconGap", four, + "CheckBox.textIconGap", 4, "CheckBox.textShiftOffset", zero, "CheckBox.icon", checkBoxIcon, "CheckBox.focusInputMap", @@ -1087,10 +1086,10 @@ "Menu.margin", twoInsets, "Menu.checkIcon", menuItemCheckIcon, "Menu.arrowIcon", menuArrowIcon, - "Menu.menuPopupOffsetX", new Integer(0), - "Menu.menuPopupOffsetY", new Integer(0), - "Menu.submenuPopupOffsetX", new Integer(0), - "Menu.submenuPopupOffsetY", new Integer(0), + "Menu.menuPopupOffsetX", 0, + "Menu.menuPopupOffsetY", 0, + "Menu.submenuPopupOffsetX", 0, + "Menu.submenuPopupOffsetY", 0, "Menu.shortcutKeys", new int[]{ SwingUtilities2.getSystemMnemonicKeyMask() }, @@ -1188,10 +1187,10 @@ "ProgressBar.selectionForeground", control, "ProgressBar.selectionBackground", textHighlight, "ProgressBar.border", progressBarBorder, - "ProgressBar.cellLength", new Integer(1), + "ProgressBar.cellLength", 1, "ProgressBar.cellSpacing", zero, - "ProgressBar.repaintInterval", new Integer(50), - "ProgressBar.cycleTime", new Integer(3000), + "ProgressBar.repaintInterval", 50, + "ProgressBar.cycleTime", 3000, "ProgressBar.horizontalSize", new DimensionUIResource(146, 12), "ProgressBar.verticalSize", new DimensionUIResource(12, 146), @@ -1236,7 +1235,7 @@ "LEFT", "positiveUnitIncrement", "KP_LEFT", "positiveUnitIncrement", }), - "ScrollBar.width", new Integer(16), + "ScrollBar.width", 16, "ScrollPane.font", dialogPlain12, "ScrollPane.background", control, @@ -1332,7 +1331,7 @@ "SplitPane.shadow", controlShadow, "SplitPane.darkShadow", controlDkShadow, "SplitPane.border", splitPaneBorder, - "SplitPane.dividerSize", new Integer(7), + "SplitPane.dividerSize", 7, "SplitPaneDivider.border", splitPaneDividerBorder, "SplitPaneDivider.draggingColor", darkGray, "SplitPane.ancestorInputMap", @@ -1363,7 +1362,7 @@ "TabbedPane.darkShadow", controlDkShadow, "TabbedPane.selected", null, "TabbedPane.focus", controlText, - "TabbedPane.textIconGap", four, + "TabbedPane.textIconGap", 4, // Causes tabs to be painted on top of the content area border. // The amount of overlap is then controlled by tabAreaInsets.bottom, @@ -1377,7 +1376,7 @@ "TabbedPane.selectedTabPadInsets", tabbedPaneTabPadInsets, "TabbedPane.tabAreaInsets", tabbedPaneTabAreaInsets, "TabbedPane.contentBorderInsets", tabbedPaneContentBorderInsets, - "TabbedPane.tabRunOverlay", new Integer(2), + "TabbedPane.tabRunOverlay", 2, "TabbedPane.tabsOpaque", Boolean.TRUE, "TabbedPane.contentOpaque", Boolean.TRUE, "TabbedPane.focusInputMap", @@ -1737,9 +1736,9 @@ "Tree.selectionBorderColor", black, "Tree.dropLineColor", controlShadow, "Tree.editorBorder", blackLineBorder, - "Tree.leftChildIndent", new Integer(7), - "Tree.rightChildIndent", new Integer(13), - "Tree.rowHeight", new Integer(16), + "Tree.leftChildIndent", 7, + "Tree.rightChildIndent", 13, + "Tree.rowHeight", 16, "Tree.scrollsOnExpand", Boolean.TRUE, "Tree.openIcon", SwingUtilities2.makeIcon(getClass(), BasicLookAndFeel.class, From petr.pchelko at oracle.com Fri Jul 11 11:20:07 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Fri, 11 Jul 2014 15:20:07 +0400 Subject: RFR : 8049893 Replace uses of 'new Integer()' with appropriate alternative across client classes In-Reply-To: References: <9726643B-8650-4266-8C87-2489B2EE4874@oracle.com> Message-ID: Thank you, Ot?vio. The fix looks good to me. With best regards. Petr. > On Jul 11, 2014, at 3:08 PM, Ot?vio Gon?alves de Santana wrote: > > > JInternalFrame > Because it has a method, line 1285, with int, setLayer(int), so it will capture just to do boxing, so I forced the boxing to avoid this method and go directly to setLayer(Integer), line 1254. > > JlayeredPane > Done. > > BasicLookAndFeel > Integer four //fixed > How was talked 500 is not in cached range. > > > On Fri, Jul 11, 2014 at 6:03 AM, Petr Pchelko wrote: >> 500 and 1000L are outside of the range [-127, 128]. Therefore they won't be cached. > Agreed, that?s what I didn?t think about. > > With best regards. Petr. > >> On Jul 11, 2014, at 1:00 PM, Andrej Golovnin wrote: >> >> Hi Petr, >> >> BasicLookAndFeel - making ?shared Integers? and ?shared longs? is pointless after your fix. Please inline. >> >> It's not pointless. >> >> 458 Integer fiveHundred = 500; >> 459 >> 460 // *** Shared Longs >> 461 Long oneThousand = 1000L; >> >> 500 and 1000L are outside of the range [-127, 128]. Therefore they won't be cached. >> >> But this one: >> >> 676 Integer four = 4; >> >> can be indeed inlined. >> >> Best regards, >> Andrej Golovnin >> >> >> >> With best regards. Petr. >> >>> On Jul 11, 2014, at 5:36 AM, Ot?vio Gon?alves de Santana wrote: >>> >>> https://bugs.openjdk.java.net/browse/JDK-8049893 >>> http://cr.openjdk.java.net/~prr/8049893/ >>> >>> -- >>> Cheers!. >>> >>> Ot?vio Gon?alves de Santana >>> >>> blog: http://otaviosantana.blogspot.com.br/ >>> twitter: http://twitter.com/otaviojava >>> site: http://about.me/otaviojava >>> 55 (11) 98255-3513 >>> >> >> > > > > > -- > Cheers!. > > Ot?vio Gon?alves de Santana > > blog: http://otaviosantana.blogspot.com.br/ > twitter: http://twitter.com/otaviojava > site: http://about.me/otaviojava > 55 (11) 98255-3513 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrei.eremeev at oracle.com Fri Jul 11 12:15:35 2014 From: andrei.eremeev at oracle.com (andrei.eremeev) Date: Fri, 11 Jul 2014 16:15:35 +0400 Subject: [9] Review Request: JDK-8049870: Fix doclint warnings from javax.swing.plaf.basic package, 4 of 7 Message-ID: <53BFD567.8020609@oracle.com> Hi Swing team, Please, review the fix for the issue: http://cr.openjdk.java.net/~yan/8049870/ The fix is available at: https://bugs.openjdk.java.net/browse/JDK-8049870 Andrei From petr.pchelko at oracle.com Fri Jul 11 12:29:30 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Fri, 11 Jul 2014 16:29:30 +0400 Subject: [9] Review Request: JDK-8049870: Fix doclint warnings from javax.swing.plaf.basic package, 4 of 7 In-Reply-To: <53BFD567.8020609@oracle.com> References: <53BFD567.8020609@oracle.com> Message-ID: Hello, Andrei. The fix looks good to me. With best regards. Petr. > On Jul 11, 2014, at 4:15 PM, andrei.eremeev wrote: > > Hi Swing team, > > Please, review the fix for the issue: > http://cr.openjdk.java.net/~yan/8049870/ > > The fix is available at: > https://bugs.openjdk.java.net/browse/JDK-8049870 > > Andrei From andrei.eremeev at oracle.com Fri Jul 11 15:12:28 2014 From: andrei.eremeev at oracle.com (andrei.eremeev) Date: Fri, 11 Jul 2014 19:12:28 +0400 Subject: [9] Review Request: JDK-8050009: Fix doclint warnings from javax.swing.plaf.basic package, 7 of 7 Message-ID: <53BFFEDC.20508@oracle.com> Hi Swing team, Please, review the fix for the issue: https://bugs.openjdk.java.net/browse/JDK-8050009 The fix is available at: http://cr.openjdk.java.net/~yan/8050009/ Andrei From philip.race at oracle.com Fri Jul 11 18:04:59 2014 From: philip.race at oracle.com (Phil Race) Date: Fri, 11 Jul 2014 11:04:59 -0700 Subject: RFR : 8049893 Replace uses of 'new Integer()' with appropriate alternative across client classes In-Reply-To: References: <9726643B-8650-4266-8C87-2489B2EE4874@oracle.com> Message-ID: <53C0274B.9060807@oracle.com> Here's the final set of changes including those 2 diffs. http://cr.openjdk.java.net/~prr/8049893.1 -phil. On 07/11/2014 04:08 AM, Ot?vio Gon?alves de Santana wrote: > > JInternalFrame > Because it has a method, line 1285, with int, setLayer(int), so it > will capture just to do boxing, so I forced the boxing to avoid this > method and go directly to setLayer(Integer), line 1254. > > JlayeredPane > Done. > > BasicLookAndFeel > Integer four //fixed > How was talked 500 is not in cached range. > > > On Fri, Jul 11, 2014 at 6:03 AM, Petr Pchelko > wrote: > >> 500 and 1000L are outside of the range [-127, 128]. Therefore >> they won't be cached. > Agreed, that's what I didn't think about. > > With best regards. Petr. > >> On Jul 11, 2014, at 1:00 PM, Andrej Golovnin >> > wrote: >> >> Hi Petr, >> >> BasicLookAndFeel - making "shared Integers" and "shared >> longs" is pointless after your fix. Please inline. >> >> >> It's not pointless. >> >> 458 Integer fiveHundred = 500; >> 459 >> 460 // *** Shared Longs >> 461 Long oneThousand = 1000L; >> >> 500 and 1000L are outside of the range [-127, 128]. Therefore >> they won't be cached. >> >> But this one: >> >> 676 Integer four = 4; >> >> can be indeed inlined. >> >> Best regards, >> Andrej Golovnin >> >> >> With best regards. Petr. >> >>> On Jul 11, 2014, at 5:36 AM, Ot?vio Gon?alves de Santana >>> >> > wrote: >>> >>> https://bugs.openjdk.java.net/browse/JDK-8049893 >>> http://cr.openjdk.java.net/~prr/8049893/ >>> >>> >>> -- >>> Cheers!. >>> >>> Ot?vio Gon?alves de Santana >>> >>> blog: http://otaviosantana.blogspot.com.br/ >>> twitter: http://twitter.com/otaviojava >>> site: _http://about.me/otaviojava_ >>> 55 (11) 98255-3513 >>> >> >> > > > > > -- > Cheers!. > > Ot?vio Gon?alves de Santana > > blog: http://otaviosantana.blogspot.com.br/ > twitter: http://twitter.com/otaviojava > site: _http://about.me/otaviojava_ > 55 (11) 98255-3513 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe.darcy at oracle.com Sat Jul 12 00:13:02 2014 From: joe.darcy at oracle.com (Joe Darcy) Date: Fri, 11 Jul 2014 17:13:02 -0700 Subject: JDK 9 RFR of JDK-8047027: Fix raw and unchecked lint warnings in generated beaninfo files Message-ID: <53C07D8E.4080605@oracle.com> Hello, Please review the proposed changes to fix JDK-8047027: Fix raw and unchecked lint warnings in generated beaninfo files http://cr.openjdk.java.net/~darcy/8047027.0/ Thanks, -Joe --- old/make/data/swingbeaninfo/SwingBeanInfo.template 2014-07-11 17:11:27.000000000 -0700 +++ new/make/data/swingbeaninfo/SwingBeanInfo.template 2014-07-11 17:11:26.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -42,7 +42,7 @@ */ public class @(BeanClassName)BeanInfo extends javax.swing.SwingBeanInfoBase { - private static final Class class@(BeanClassName) = @(BeanClassObject); + private static final Class class@(BeanClassName) = @(BeanClassObject); /** * @return a @(BeanClassName) BeanDescriptor --- old/make/data/swingbeaninfo/javax/swing/SwingBeanInfoBase.java 2014-07-11 17:11:27.000000000 -0700 +++ new/make/data/swingbeaninfo/javax/swing/SwingBeanInfoBase.java 2014-07-11 17:11:27.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -67,7 +67,7 @@ * its PropertyDescriptors will be included. */ public BeanInfo[] getAdditionalBeanInfo() { - Class superClass = getBeanDescriptor().getBeanClass().getSuperclass(); + Class superClass = getBeanDescriptor().getBeanClass().getSuperclass(); BeanInfo superBeanInfo = null; try { superBeanInfo = Introspector.getBeanInfo(superClass); --- old/make/data/swingbeaninfo/sun/swing/BeanInfoUtils.java 2014-07-11 17:11:27.000000000 -0700 +++ new/make/data/swingbeaninfo/sun/swing/BeanInfoUtils.java 2014-07-11 17:11:27.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -122,7 +122,7 @@ * @see java.beans#PropertyDescriptor * @see java.beans#FeatureDescriptor */ - public static PropertyDescriptor createPropertyDescriptor(Class cls, String name, Object[] args) + public static PropertyDescriptor createPropertyDescriptor(Class cls, String name, Object[] args) { PropertyDescriptor pd = null; try { @@ -156,7 +156,7 @@ String methodName = (String)value; Method method; try { - method = cls.getMethod(methodName, new Class[0]); + method = cls.getMethod(methodName, new Class[0]); pd.setReadMethod(method); } catch(Exception e) { @@ -168,8 +168,8 @@ String methodName = (String)value; Method method; try { - Class type = pd.getPropertyType(); - method = cls.getMethod(methodName, new Class[]{type}); + Class type = pd.getPropertyType(); + method = cls.getMethod(methodName, new Class[]{type}); pd.setWriteMethod(method); } catch(Exception e) { @@ -215,9 +215,9 @@ * @see java.beans#BeanInfo * @see java.beans#PropertyDescriptor */ - public static BeanDescriptor createBeanDescriptor(Class cls, Object[] args) + public static BeanDescriptor createBeanDescriptor(Class cls, Object[] args) { - Class customizerClass = null; + Class customizerClass = null; /* For reasons I don't understand, customizerClass is a * readOnly property. So we have to find it and pass it @@ -242,11 +242,11 @@ } static private PropertyDescriptor createReadOnlyPropertyDescriptor( - String name, Class cls) throws IntrospectionException { + String name, Class cls) throws IntrospectionException { Method readMethod = null; String base = capitalize(name); - Class[] parameters = new Class[0]; + Class[] parameters = new Class[0]; // Is it a boolean? try { @@ -264,7 +264,7 @@ try { // Try indexed accessor pattern. - parameters = new Class[1]; + parameters = new Class[1]; parameters[0] = int.class; readMethod = cls.getMethod("get" + base, parameters); } catch (NoSuchMethodException nsme) { From Alan.Bateman at oracle.com Mon Jul 14 07:33:51 2014 From: Alan.Bateman at oracle.com (Alan Bateman) Date: Mon, 14 Jul 2014 08:33:51 +0100 Subject: JDK 9 RFR of JDK-8047027: Fix raw and unchecked lint warnings in generated beaninfo files In-Reply-To: <53C07D8E.4080605@oracle.com> References: <53C07D8E.4080605@oracle.com> Message-ID: <53C387DF.5030804@oracle.com> On 12/07/2014 01:13, Joe Darcy wrote: > Hello, > > Please review the proposed changes to fix > > JDK-8047027: Fix raw and unchecked lint warnings in generated > beaninfo files > http://cr.openjdk.java.net/~darcy/8047027.0/ This looks good to me (although I believe these templates will go away soon). -Alan From petr.pchelko at oracle.com Mon Jul 14 14:39:27 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Mon, 14 Jul 2014 18:39:27 +0400 Subject: [9] Review Request: JDK-8050009: Fix doclint warnings from javax.swing.plaf.basic package, 7 of 7 In-Reply-To: <53BFFEDC.20508@oracle.com> References: <53BFFEDC.20508@oracle.com> Message-ID: <3A24DB28-2F39-4818-A1C9-D85AB760E089@oracle.com> Hello, Andrei. The fix looks good to me. With best regards. Petr. On 11 ???? 2014 ?., at 19:12, andrei.eremeev wrote: > Hi Swing team, > > Please, review the fix for the issue: > https://bugs.openjdk.java.net/browse/JDK-8050009 > > The fix is available at: > http://cr.openjdk.java.net/~yan/8050009/ > > Andrei From philip.race at oracle.com Mon Jul 14 17:21:40 2014 From: philip.race at oracle.com (Phil Race) Date: Mon, 14 Jul 2014 10:21:40 -0700 Subject: [9] Review Request: JDK-8050009: Fix doclint warnings from javax.swing.plaf.basic package, 7 of 7 In-Reply-To: <3A24DB28-2F39-4818-A1C9-D85AB760E089@oracle.com> References: <53BFFEDC.20508@oracle.com> <3A24DB28-2F39-4818-A1C9-D85AB760E089@oracle.com> Message-ID: <53C411A4.9010305@oracle.com> The pre-existing comment "Creates a listener that is responsible that updates the UI based on how the tree changes." is bad grammar and should be fixed too. Perhaps this would be a good time to make clear in the docs that createPropertyChangeListener does not create a new listener every time :- So "Creates a listener if one does not already exist, otherwise gets the existing listener, that is responsible for updating the UI based on changes in the tree." Or may be use the phrase, 'creates the listener, used on all the subsequent methods like createMouseListener which implies a singleton 982 /** 983 * Creates a listener that is responsible that updates the UI based on 984 * how the tree changes. 985 * 986 * @return an instance of the {@code PropertyChangeListener} 987 */ 988 protected PropertyChangeListener createPropertyChangeListener() { 989 return getHandler(); 990 } 991 992 private Handler getHandler() { 993 if (handler == null) { 994 handler = new Handler(); 995 } 996 return handler; 997 } 998 999 /** 1000 * Creates the listener responsible for updating the selection based on 1001 * mouse events. 1002 * 1003 * @return an instance of the {@code MouseListener} 1004 */ 1005 protected MouseListener createMouseListener() { 1006 return getHandler(); 1007 } 1008 On 7/14/2014 7:39 AM, Petr Pchelko wrote: > Hello, Andrei. > > The fix looks good to me. > > With best regards. Petr. > > On 11 ???? 2014 ?., at 19:12, andrei.eremeev wrote: > >> Hi Swing team, >> >> Please, review the fix for the issue: >> https://bugs.openjdk.java.net/browse/JDK-8050009 >> >> The fix is available at: >> http://cr.openjdk.java.net/~yan/8050009/ >> >> Andrei From alexey.ivanov at oracle.com Tue Jul 15 11:03:04 2014 From: alexey.ivanov at oracle.com (Alexey Ivanov) Date: Tue, 15 Jul 2014 15:03:04 +0400 Subject: [7u-dev] Review request for JDK-8046559: NPE when changing Windows theme In-Reply-To: <792FFA70-C541-4BC9-8A75-E97EF16916B2@oracle.com> References: <53BEB86D.3080908@oracle.com> <53BF08E9.5090003@oracle.com> <792FFA70-C541-4BC9-8A75-E97EF16916B2@oracle.com> Message-ID: <53C50A68.1050008@oracle.com> Hi Anthony, Petr, Thank you for your review. Regards, Alexey. On 11.07.2014 9:47, Petr Pchelko wrote: > Hello, Alexey. > > Looks OK to me too. > > With best regards. Petr. > >> On Jul 11, 2014, at 1:43 AM, Anthony Petrov wrote: >> >> Hi Alexey, >> >> I skimmed through the changes and they look fine to me. +1. >> >> -- >> best regards, >> Anthony >> >> On 7/10/2014 7:59 PM, Alexey Ivanov wrote: >>> Hi AWT, Swing teams, >>> >>> Could you please review the backport of JDK-8046559 to jdk7: >>> bug: https://bugs.openjdk.java.net/browse/JDK-8046559 >>> webrev: http://cr.openjdk.java.net/~aivanov/8046559/jdk7/webrev.00/ >>> >>> >>> Changes between jdk9 and jdk7: >>> >>> I replaced labmda expression in WToolkit.java with anonymous class. >>> It is the only change from the previous webrev: >>> http://mail.openjdk.java.net/pipermail/awt-dev/2014-July/008147.html >>> http://mail.openjdk.java.net/pipermail/swing-dev/2014-July/003657.html >>> >>> >>> Latest jdk9 webrev: >>> http://cr.openjdk.java.net/~aivanov/8046559/jdk9/webrev.01/ >>> >>> >>> The information is below is copied from jdk9 review for the sake of >>> completeness. >>> >>> >>> Problem description: >>> When changing Windows themes from a theme with visual styles (Windows >>> Aero or Windows Basic) to a classic one, NullPointerException could be >>> thrown from Swing code during component tree validation, or >>> InternalError could be thrown during component painting. >>> >>> Root cause: >>> Windows theme data are accessed via XPStyle and ThemeReader. When the >>> theme is switched to a classic one, theme handles become unavailable, >>> and theme data cannot be accessed any more. The change in theme is >>> posted to EDT; at the same time, the UI often needs to repaint before >>> the theme change is completely handled in Swing. This leads to NPE and >>> InternalError as the code tries to access the data that has become >>> unavailable. >>> >>> The fix: >>> Windows desktop properties are updated right on Windows Toolkit thread, >>> and the value of "win.xpstyle.themeActive" is stored in >>> ThemeReader.xpStyleEnabled field. PropertyChangeEvents for desktop >>> properties are delivered either synchronously on EDT or asynchronously >>> via DesktopPropertyChangeSupport, as it used to be. >>> >>> Getters in XPStyle class check for null values and return dummy defaults >>> if ThemeReader returned null. SkinPainters also check whether theming is >>> still available before asking ThemeReader to paint. >>> >>> Access to XPStyle.xp instance is blocked as soon as user switches >>> themes. The object will be cleaned when the corresponding >>> PropertyChangeEvent is handled by Swing. >>> >>> >>> This new version of the fix addresses issues found with the initial >>> submission of JDK-8039383 fix: >>> - JDK-8046239: Build failure in 9-client on all non-Windows platforms >>> - JDK-8046391: Hang displaying JFileChooser with Windows L&F >>> >>> See also >>> http://mail.openjdk.java.net/pipermail/awt-dev/2014-June/007975.html >>> and http://cr.openjdk.java.net/~aivanov/8039383/jdk9/webrev.03/ >>> >>> >>> Regression test: >>> No regression test is provided due to its complexity. Whether >>> NullPointerException or InternalError are thrown depends on the order of >>> event handling, sometimes exceptions do not occur when changing theme of >>> visual styles enabled theme to a classic theme. >>> >>> I included regression test for hang in JFileChooser, JDK-8046391. >>> >>> >>> Thank you, >>> Alexey. From rocky.sloan at oracle.com Wed Jul 16 07:41:56 2014 From: rocky.sloan at oracle.com (Rocky Sloan) Date: Wed, 16 Jul 2014 00:41:56 -0700 Subject: Review Request for 8044261: Fix doclint warnings (missing javadoc @param and @return tags) in javax.swing.text - Part 1 of 2 In-Reply-To: <8985648C-97B0-490B-9202-04137624CA5B@oracle.com> References: <53BE5EA3.1010107@oracle.com> <8985648C-97B0-490B-9202-04137624CA5B@oracle.com> Message-ID: <53C62CC4.10700@oracle.com> Hi Petr, Thanks for the comments. I have corrected 2,3,4,6. As far as the indentation and line continuation format, I am still a bit unclear and I want to make sure I get it right for you. Generally, I follow the usage currently in place within that file (one or two spaces after the param/return, how multiple line indentations are handled, etc). For tags with multiple lines, I will follow the local usage within the file by indenting one or two spaces (or line them up in a block, especially when multiple multi-line tags become unclear). For some quick perspective, here is a blurb from the reference document Steve mentioned: ---------------------- "Additional spaces can be inserted between the name and description so that the descriptions line up in a block." Example: * @param ch the character to be tested * @param observer the image observer to be notified ---------------------- I particularly tend to do this when multiple multi-line tags start looking messy. In AbstractWriter, I used this style (block-formatted descriptions): * @param chars character array containing content to write * @param startIndex offset in the array to start writing from; * 0 starts at the beginning * @param length number of characters to write You requested this: * @param chars character array containing content to write * @param startIndex offset in the array to start writing from; * 0 starts at the beginning * @param length number of characters to write that is, single space after the param name, and arbitrary indent on the tag with multiple lines. The question for this style is, what is the rule for how far to indent the second line? I have seen the following variation in many files (indent one or two spaces upon line continuation): * @param chars character array containing content to write * @param startIndex offset in the array to start writing from; * 0 starts at the beginning * @param length number of characters to write or this (second line text lines up with start of description): * @param chars character array containing content to write * @param startIndex offset in the array to start writing from; * 0 starts at the beginning * @param length number of characters to write Let me know what will work for you. Many files use a single space after the @param name or @return, others use two spaces (like in the reference doc, but it also uses ...) In some files, the first word of the @param/@return description is capitalized, and the sentence ends in a period. Of course, block formatting (as above) is used here and there. I also avoid modifying the existing tags and instead try to conform to them (unless something obvious needs fixing). If the formatting you prefer does not match existing tags for the method, should I modify the existing tags (in the method or entire file) to conform to the new formatting? Thanks again! Best Regards, Rocky On 7/10/2014 3:39 AM, Petr Pchelko wrote: > Hello, Rocky. > > A couple of comments. > > 1. Please control the correct indentation of the second line of the @param/@return tag descriptions. You have many places where it's incorrect. > 2. Please use @code instead of > 3. AbstractWriter - no need to mention variable names in the javadoc. Please remove it. > 4. AbstractWriter:374 - better to say {@code true} if the lines will be wrapped, {@code false} otherwise. Also please remove the last line of the doc. > 5. The indentation of @param comments is incorrect. You have: >> * @param chars character array containing content to write >> * @param startIndex offset in the array to start writing from; >> * 0 starts at the beginning >> * @param length number of characters to write > And you should have: >> * @param chars character array containing content to write >> * @param startIndex offset in the array to start writing from; >> * 0 starts at the beginning >> * @param length number of characters to write > 6. AsyncBoxView:451 - it's not a boolean! > > With best regards. Petr. > > On 10 ???? 2014 ?., at 13:36, Rocky Sloan wrote: > >> Hello, >> >> Could you please review Part 1 of the fix for the following bug: >> https://bugs.openjdk.java.net/browse/JDK-8044261 >> >> This is part 1 of 2. >> >> Webrev corresponding: >> http://cr.openjdk.java.net/~yan/8044261/webrev.01/ >> >> Change: >> Add missing @return and @param javadoc tags in javax.swing.text classes to fix doclint warnings. >> >> Thanks, >> >> - Rocky >> From petr.pchelko at oracle.com Thu Jul 17 08:26:23 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Thu, 17 Jul 2014 12:26:23 +0400 Subject: Review Request for 8044261: Fix doclint warnings (missing javadoc @param and @return tags) in javax.swing.text - Part 1 of 2 In-Reply-To: <53C62CC4.10700@oracle.com> References: <53BE5EA3.1010107@oracle.com> <8985648C-97B0-490B-9202-04137624CA5B@oracle.com> <53C62CC4.10700@oracle.com> Message-ID: Hello, Rocky. > I have corrected 2,3,4,6. Thank you. Where can I find an updated webrev? Looks like we are trying to conform to the following pattern: > * @param chars character array containing content to write > * @param startIndex offset in the array to start writing from; > * 0 starts at the beginning > * @param length number of characters to write > If the formatting you prefer does not match existing tags for the method, should I modify the existing tags (in the method or entire file) to conform to the new formatting? I think the best thing to do is to modify the doc of the method you touch. The entire file is way too much and having a single method with different formatting looks bad... With best regards. Petr. On 16 ???? 2014 ?., at 11:41, Rocky Sloan wrote: > Hi Petr, > > Thanks for the comments. > > I have corrected 2,3,4,6. > > As far as the indentation and line continuation format, I am still a bit unclear and I want to make sure I get it right for you. > > Generally, I follow the usage currently in place within that file (one or two spaces after the param/return, how multiple line indentations are handled, etc). > > For tags with multiple lines, I will follow the local usage within the file by indenting one or two spaces (or line them up in a block, especially when multiple multi-line tags become unclear). > > For some quick perspective, here is a blurb from the reference document Steve mentioned: > > ---------------------- > "Additional spaces can be inserted between the name and description so that the descriptions line up in a block." > > Example: > > * @param ch the character to be tested > * @param observer the image observer to be notified > ---------------------- > > I particularly tend to do this when multiple multi-line tags start looking messy. > > In AbstractWriter, I used this style (block-formatted descriptions): > > * @param chars character array containing content to write > * @param startIndex offset in the array to start writing from; > * 0 starts at the beginning > * @param length number of characters to write > > You requested this: > > * @param chars character array containing content to write > * @param startIndex offset in the array to start writing from; > * 0 starts at the beginning > * @param length number of characters to write > > that is, single space after the param name, and arbitrary indent on the tag with multiple lines. > The question for this style is, what is the rule for how far to indent the second line? > > I have seen the following variation in many files (indent one or two spaces upon line continuation): > > * @param chars character array containing content to write > * @param startIndex offset in the array to start writing from; > * 0 starts at the beginning > * @param length number of characters to write > > or this (second line text lines up with start of description): > > * @param chars character array containing content to write > * @param startIndex offset in the array to start writing from; > * 0 starts at the beginning > * @param length number of characters to write > > Let me know what will work for you. > > Many files use a single space after the @param name or @return, others use two spaces (like in the reference doc, but it also uses ...) > In some files, the first word of the @param/@return description is capitalized, and the sentence ends in a period. > Of course, block formatting (as above) is used here and there. > > I also avoid modifying the existing tags and instead try to conform to them (unless something obvious needs fixing). > If the formatting you prefer does not match existing tags for the method, should I modify the existing tags (in the method or entire file) to conform to the new formatting? > > Thanks again! > > Best Regards, > > Rocky > > On 7/10/2014 3:39 AM, Petr Pchelko wrote: >> Hello, Rocky. >> >> A couple of comments. >> >> 1. Please control the correct indentation of the second line of the @param/@return tag descriptions. You have many places where it's incorrect. >> 2. Please use @code instead of >> 3. AbstractWriter - no need to mention variable names in the javadoc. Please remove it. >> 4. AbstractWriter:374 - better to say {@code true} if the lines will be wrapped, {@code false} otherwise. Also please remove the last line of the doc. >> 5. The indentation of @param comments is incorrect. You have: >>> * @param chars character array containing content to write >>> * @param startIndex offset in the array to start writing from; >>> * 0 starts at the beginning >>> * @param length number of characters to write >> And you should have: >>> * @param chars character array containing content to write >>> * @param startIndex offset in the array to start writing from; >>> * 0 starts at the beginning >>> * @param length number of characters to write >> 6. AsyncBoxView:451 - it's not a boolean! >> >> With best regards. Petr. >> >> On 10 ???? 2014 ?., at 13:36, Rocky Sloan wrote: >> >>> Hello, >>> >>> Could you please review Part 1 of the fix for the following bug: >>> https://bugs.openjdk.java.net/browse/JDK-8044261 >>> >>> This is part 1 of 2. >>> >>> Webrev corresponding: >>> http://cr.openjdk.java.net/~yan/8044261/webrev.01/ >>> >>> Change: >>> Add missing @return and @param javadoc tags in javax.swing.text classes to fix doclint warnings. >>> >>> Thanks, >>> >>> - Rocky >>> > From steve.sides at oracle.com Thu Jul 17 19:32:36 2014 From: steve.sides at oracle.com (Steve Sides) Date: Thu, 17 Jul 2014 12:32:36 -0700 Subject: Review Request for 8042284: Add block tags for @return and @param to swing plaf classes In-Reply-To: <53B2D8D7.2000504@oracle.com> References: <53B2D8D7.2000504@oracle.com> Message-ID: <53C824D4.9060406@oracle.com> Hello, This is a redo of the changes so that they are based on jdk9/client rather than jdk9/dev. Could you please review these fixes for doclint warnings for javax/swing/plaf. This addresses mostly just missing @param and @return tags. bugID: https://bugs.openjdk.java.net/browse/JDK-8042284 Webrev corresponding: http://sqeweb.us.oracle.com/coretools/ssides/webrevs/8042284/8042284.4/ thanks, steve On 7/1/2014 8:50 AM, Steve Sides wrote: > ------------------------------------------------------------------------ > Hello, > > Could you please review the fix for the following bug: > https://bugs.openjdk.java.net/browse/JDK-8042284 > > Webrev corresponding: > http://cr.openjdk.java.net/~ssides/8042284/8042284.3/ > > This addresses missing @parm and @return block tags in javadoc for > javax/swing/plaf classes as noted by doclint. > > It does not address methods which are missing javadoc comment altogether, > of which there are several. > > > thanks, > > -steve > -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip.race at oracle.com Thu Jul 17 19:43:13 2014 From: philip.race at oracle.com (Phil Race) Date: Thu, 17 Jul 2014 12:43:13 -0700 Subject: Review Request for 8042284: Add block tags for @return and @param to swing plaf classes In-Reply-To: <53C824D4.9060406@oracle.com> References: <53B2D8D7.2000504@oracle.com> <53C824D4.9060406@oracle.com> Message-ID: <53C82751.6070901@oracle.com> http://sqeweb.us.oracle.com/coretools/ssides/webrevs/8042284/8042284.4/src/share/classes/javax/swing/plaf/ComponentUI.java.sdiff.html You didn't do anything about the (many) uses of FOO like this :- * Returns true if the specified x,y location is 231 * contained within the look and feel's defined shape of the specified 232 * component. x and y ar Elsewhere (eg) this file http://cr.openjdk.java.net/~serb/8050852/webrev.02/src/share/classes/javax/sound/midi/Instrument.java.sdiff.html in this thread : - http://mail.openjdk.java.net/pipermail/awt-dev/2014-July/008231.html I'm seeing these replaced by {@code FOO} You have used that syntax in your new doc but left alone the others. So it seems you are focused solely on the @param and @throws tags. Is the rest being handled by someone else ? -phil. On 7/17/2014 12:32 PM, Steve Sides wrote: > Hello, > This is a redo of the changes so that they are based on jdk9/client > rather than jdk9/dev. > Could you please review these fixes for doclint warnings for javax/swing/plaf. > This addresses mostly just missing @param and @return tags. > > bugID: > https://bugs.openjdk.java.net/browse/JDK-8042284 > > Webrev corresponding: > http://sqeweb.us.oracle.com/coretools/ssides/webrevs/8042284/8042284.4/ > > thanks, > > steve > > > On 7/1/2014 8:50 AM, Steve Sides wrote: >> ------------------------------------------------------------------------ >> Hello, >> >> Could you please review the fix for the following bug: >> https://bugs.openjdk.java.net/browse/JDK-8042284 >> >> Webrev corresponding: >> http://cr.openjdk.java.net/~ssides/8042284/8042284.3/ >> >> This addresses missing @parm and @return block tags in javadoc for >> javax/swing/plaf classes as noted by doclint. >> >> It does not address methods which are missing javadoc comment altogether, >> of which there are several. >> >> >> thanks, >> >> -steve >> > From steve.sides at oracle.com Fri Jul 18 00:06:43 2014 From: steve.sides at oracle.com (Steve Sides) Date: Thu, 17 Jul 2014 17:06:43 -0700 Subject: Review Request for 8042284: Add block tags for @return and @param to swing plaf classes In-Reply-To: <53C82751.6070901@oracle.com> References: <53B2D8D7.2000504@oracle.com> <53C824D4.9060406@oracle.com> <53C82751.6070901@oracle.com> Message-ID: <53C86513.8060404@oracle.com> We've been addressing mostly just the doclint warnings, first missing tags (and some comments), then missing comments. I like the scrubbing list provided in http://mail.openjdk.java.net/pipermail/awt-dev/2014-July/008231.html . Would you suggest we do that for the complete files rather than just address doclint issues?...I'd like to update the to {@tags} and more uniform formatting in particular. -steve On 7/17/2014 12:43 PM, Phil Race wrote: > http://sqeweb.us.oracle.com/coretools/ssides/webrevs/8042284/8042284.4/src/share/classes/javax/swing/plaf/ComponentUI.java.sdiff.html > > > You didn't do anything about the (many) uses of FOO like > this :- > > * Returns true if the specified x,y location is > 231 * contained within the look and feel's defined shape of the > specified > 232 * component. x and y ar > > Elsewhere (eg) this file > http://cr.openjdk.java.net/~serb/8050852/webrev.02/src/share/classes/javax/sound/midi/Instrument.java.sdiff.html > > in this thread : - > http://mail.openjdk.java.net/pipermail/awt-dev/2014-July/008231.html > > I'm seeing these replaced by {@code FOO} > > You have used that syntax in your new doc but left alone the others. > > So it seems you are focused solely on the @param and @throws tags. > > Is the rest being handled by someone else ? > > -phil. > > On 7/17/2014 12:32 PM, Steve Sides wrote: >> Hello, >> This is a redo of the changes so that they are based on jdk9/client >> rather than jdk9/dev. >> Could you please review these fixes for doclint warnings for >> javax/swing/plaf. >> This addresses mostly just missing @param and @return tags. >> >> bugID: >> https://bugs.openjdk.java.net/browse/JDK-8042284 >> >> Webrev corresponding: >> http://sqeweb.us.oracle.com/coretools/ssides/webrevs/8042284/8042284.4/ >> >> thanks, >> >> steve >> >> >> On 7/1/2014 8:50 AM, Steve Sides wrote: >>> ------------------------------------------------------------------------ >>> >>> Hello, >>> >>> Could you please review the fix for the following bug: >>> https://bugs.openjdk.java.net/browse/JDK-8042284 >>> >>> Webrev corresponding: >>> http://cr.openjdk.java.net/~ssides/8042284/8042284.3/ >>> >>> This addresses missing @parm and @return block tags in javadoc for >>> javax/swing/plaf classes as noted by doclint. >>> >>> It does not address methods which are missing javadoc comment >>> altogether, >>> of which there are several. >>> >>> >>> thanks, >>> >>> -steve >>> >> > From alexandr.scherbatiy at oracle.com Tue Jul 22 14:32:20 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Tue, 22 Jul 2014 18:32:20 +0400 Subject: [9] Review request for 8017284 Aqua LaF: memory leak when HTML is used for JTabbedPane tab titles Message-ID: <53CE75F4.7040306@oracle.com> Hello, Could you review the fix: bug: https://bugs.openjdk.java.net/browse/JDK-8017284 webrev: http://cr.openjdk.java.net/~alexsch/8017284/webrev.00 The memory leak in Aqua TabbedPaneUI is fixed. Thanks, Alexandr. From petr.pchelko at oracle.com Tue Jul 22 15:51:19 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Tue, 22 Jul 2014 19:51:19 +0400 Subject: [9] Review request for 8017284 Aqua LaF: memory leak when HTML is used for JTabbedPane tab titles In-Reply-To: <53CE75F4.7040306@oracle.com> References: <53CE75F4.7040306@oracle.com> Message-ID: <895BE870-CF25-41E5-BF5C-E66FFE8E1566@oracle.com> Hello, Alexander. The fix looks good to me. With best regards. Petr. > On Jul 22, 2014, at 6:32 PM, Alexander Scherbatiy wrote: > > > Hello, > > Could you review the fix: > bug: https://bugs.openjdk.java.net/browse/JDK-8017284 > webrev: http://cr.openjdk.java.net/~alexsch/8017284/webrev.00 > > The memory leak in Aqua TabbedPaneUI is fixed. > > Thanks, > Alexandr. > From Sergey.Bylokhov at oracle.com Tue Jul 22 16:46:27 2014 From: Sergey.Bylokhov at oracle.com (Sergey Bylokhov) Date: Tue, 22 Jul 2014 20:46:27 +0400 Subject: [9] Review request for 8017284 Aqua LaF: memory leak when HTML is used for JTabbedPane tab titles In-Reply-To: <53CE75F4.7040306@oracle.com> References: <53CE75F4.7040306@oracle.com> Message-ID: <53CE9563.7000902@oracle.com> Hi, Alexander. Should we update BasicTabbedPaneUI also? On 7/22/14 6:32 PM, Alexander Scherbatiy wrote: > > Hello, > > Could you review the fix: > bug: https://bugs.openjdk.java.net/browse/JDK-8017284 > webrev: http://cr.openjdk.java.net/~alexsch/8017284/webrev.00 > > The memory leak in Aqua TabbedPaneUI is fixed. > > Thanks, > Alexandr. > -- Best regards, Sergey. From alexandr.scherbatiy at oracle.com Wed Jul 23 12:52:16 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Wed, 23 Jul 2014 16:52:16 +0400 Subject: [9] Review request for 8017284 Aqua LaF: memory leak when HTML is used for JTabbedPane tab titles In-Reply-To: <53CE9563.7000902@oracle.com> References: <53CE75F4.7040306@oracle.com> <53CE9563.7000902@oracle.com> Message-ID: <53CFB000.2060103@oracle.com> On 7/22/2014 8:46 PM, Sergey Bylokhov wrote: > Hi, Alexander. > Should we update BasicTabbedPaneUI also? The BasicTabbedPaneUIdoes not have the memory leak because it removes html view element before inserting new one. However, it is faster to set new element rather then removing and inserting it. I have also missed the case that a tab can be inserting between others. I fix it also. Could you review the updated fix: http://cr.openjdk.java.net/~alexsch/8017284/webrev.01/ Thanks, Alexandr. > > On 7/22/14 6:32 PM, Alexander Scherbatiy wrote: >> >> Hello, >> >> Could you review the fix: >> bug: https://bugs.openjdk.java.net/browse/JDK-8017284 >> webrev: http://cr.openjdk.java.net/~alexsch/8017284/webrev.00 >> >> The memory leak in Aqua TabbedPaneUI is fixed. >> >> Thanks, >> Alexandr. >> > > From steve.sides at oracle.com Wed Jul 23 15:38:05 2014 From: steve.sides at oracle.com (Steve Sides) Date: Wed, 23 Jul 2014 08:38:05 -0700 Subject: Review Request for 8042284: Add block tags for @return and @param to swing plaf classes In-Reply-To: <53C82751.6070901@oracle.com> References: <53B2D8D7.2000504@oracle.com> <53C824D4.9060406@oracle.com> <53C82751.6070901@oracle.com> Message-ID: <53CFD6DD.4050407@oracle.com> Take 5: http://cr.openjdk.java.net/~ssides/8042284/8042284.5/ I did a more thorough job also addressing 1. - 80 column limit. - I fix more egregious violators in all files. I left 81's alone. 2. - replaced by {@tag }. - changed all these in all files addressed Most missing comments are to be handled separately. There's still ~800 of these in the javax.swing packages. -steve On 7/17/2014 12:43 PM, Phil Race wrote: > http://sqeweb.us.oracle.com/coretools/ssides/webrevs/8042284/8042284.4/src/share/classes/javax/swing/plaf/ComponentUI.java.sdiff.html > > > You didn't do anything about the (many) uses of FOO like > this :- > > * Returns true if the specified x,y location is > 231 * contained within the look and feel's defined shape of the > specified > 232 * component. x and y ar > > Elsewhere (eg) this file > http://cr.openjdk.java.net/~serb/8050852/webrev.02/src/share/classes/javax/sound/midi/Instrument.java.sdiff.html > > in this thread : - > http://mail.openjdk.java.net/pipermail/awt-dev/2014-July/008231.html > > I'm seeing these replaced by {@code FOO} > > You have used that syntax in your new doc but left alone the others. > > So it seems you are focused solely on the @param and @throws tags. > > Is the rest being handled by someone else ? > > -phil. > > On 7/17/2014 12:32 PM, Steve Sides wrote: >> Hello, >> This is a redo of the changes so that they are based on jdk9/client >> rather than jdk9/dev. >> Could you please review these fixes for doclint warnings for >> javax/swing/plaf. >> This addresses mostly just missing @param and @return tags. >> >> bugID: >> https://bugs.openjdk.java.net/browse/JDK-8042284 >> >> Webrev corresponding: >> http://sqeweb.us.oracle.com/coretools/ssides/webrevs/8042284/8042284.4/ >> >> thanks, >> >> steve >> >> >> On 7/1/2014 8:50 AM, Steve Sides wrote: >>> ------------------------------------------------------------------------ >>> >>> Hello, >>> >>> Could you please review the fix for the following bug: >>> https://bugs.openjdk.java.net/browse/JDK-8042284 >>> >>> Webrev corresponding: >>> http://cr.openjdk.java.net/~ssides/8042284/8042284.3/ >>> >>> This addresses missing @parm and @return block tags in javadoc for >>> javax/swing/plaf classes as noted by doclint. >>> >>> It does not address methods which are missing javadoc comment >>> altogether, >>> of which there are several. >>> >>> >>> thanks, >>> >>> -steve >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.sides at oracle.com Wed Jul 23 22:52:56 2014 From: steve.sides at oracle.com (Steve Sides) Date: Wed, 23 Jul 2014 15:52:56 -0700 Subject: Review Request for 8042284: Add block tags for @return and @param to swing plaf classes In-Reply-To: <53CFD6DD.4050407@oracle.com> References: <53B2D8D7.2000504@oracle.com> <53C824D4.9060406@oracle.com> <53C82751.6070901@oracle.com> <53CFD6DD.4050407@oracle.com> Message-ID: <53D03CC8.1040505@oracle.com> I see there is a typo introduced in TreeUI.java 110 pblic abstract boolean isEditing(JTree tree); Other than that...please review. -steve On 7/23/2014 8:38 AM, Steve Sides wrote: > Take 5: http://cr.openjdk.java.net/~ssides/8042284/8042284.5/ > > I did a more thorough job also addressing > > 1. - 80 column limit. - I fix more egregious violators in all > files. I left 81's alone. > 2. - replaced by {@tag }. - changed all these in all files > addressed > > Most missing comments are to be handled separately. There's still ~800 > of these in the javax.swing packages. > > -steve > > > On 7/17/2014 12:43 PM, Phil Race wrote: >> http://sqeweb.us.oracle.com/coretools/ssides/webrevs/8042284/8042284.4/src/share/classes/javax/swing/plaf/ComponentUI.java.sdiff.html >> >> >> You didn't do anything about the (many) uses of FOO like >> this :- >> >> * Returns true if the specified x,y location is >> 231 * contained within the look and feel's defined shape of the >> specified >> 232 * component. x and y ar >> >> Elsewhere (eg) this file >> http://cr.openjdk.java.net/~serb/8050852/webrev.02/src/share/classes/javax/sound/midi/Instrument.java.sdiff.html >> >> in this thread : - >> http://mail.openjdk.java.net/pipermail/awt-dev/2014-July/008231.html >> >> I'm seeing these replaced by {@code FOO} >> >> You have used that syntax in your new doc but left alone the others. >> >> So it seems you are focused solely on the @param and @throws tags. >> >> Is the rest being handled by someone else ? >> >> -phil. >> >> On 7/17/2014 12:32 PM, Steve Sides wrote: >>> Hello, >>> This is a redo of the changes so that they are based on >>> jdk9/client rather than jdk9/dev. >>> Could you please review these fixes for doclint warnings for >>> javax/swing/plaf. >>> This addresses mostly just missing @param and @return tags. >>> >>> bugID: >>> https://bugs.openjdk.java.net/browse/JDK-8042284 >>> >>> Webrev corresponding: >>> http://sqeweb.us.oracle.com/coretools/ssides/webrevs/8042284/8042284.4/ >>> >>> thanks, >>> >>> steve >>> >>> >>> On 7/1/2014 8:50 AM, Steve Sides wrote: >>>> ------------------------------------------------------------------------ >>>> >>>> Hello, >>>> >>>> Could you please review the fix for the following bug: >>>> https://bugs.openjdk.java.net/browse/JDK-8042284 >>>> >>>> Webrev corresponding: >>>> http://cr.openjdk.java.net/~ssides/8042284/8042284.3/ >>>> >>>> This addresses missing @parm and @return block tags in javadoc for >>>> javax/swing/plaf classes as noted by doclint. >>>> >>>> It does not address methods which are missing javadoc comment >>>> altogether, >>>> of which there are several. >>>> >>>> >>>> thanks, >>>> >>>> -steve >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sergey.Bylokhov at oracle.com Fri Jul 25 00:44:47 2014 From: Sergey.Bylokhov at oracle.com (Sergey Bylokhov) Date: Fri, 25 Jul 2014 04:44:47 +0400 Subject: [9] Review Request: JDK-8046446, , Fix doclint warnings in javax.swing.text.html package In-Reply-To: <53A2D6B1.1010106@oracle.com> References: <53983CF9.8040101@oracle.com> <53983DE1.3090403@oracle.com> <79780FA0-F974-49C4-9E2D-4144BEC816EA@oracle.com> <53A2D6B1.1010106@oracle.com> Message-ID: <53D1A87F.7000103@oracle.com> Hi, Andrei. - HTMLEditorKit.java:283 * @throws IOException on I/O error I guess it should be * @throws IOException on any I/O error and in StyleSheet.java you add: @throws java.io.IOException if I/O error occured. - Please replace code like this >= 0 to {@code } - I didn't notice dependence on use of dots in param/return. Please use it only if the tag have two or more sentences. - Option.java:120 Realign return tag. On 19.06.2014 16:25, andrei.eremeev wrote: > Hi, > > I have fixed Petr's remarks. > http://cr.openjdk.java.net/~yan/8046446/webrev.01/ > > Andrei > > On 06/18/2014 02:39 PM, Petr Pchelko wrote: >> Hello, Andrei. >> >> HTMLEditorKit.java:276 - the beginning of the description if not aligned >> Actually all the HTMLEditorKit has alignment issues. For example >> lines 1754-1764. >> Why some parameter descriptions are aligned and others are not? >> I think it's better to align the beginnings of the parameter >> descriptions for better readability. >> >> MinimalHTMLWriter:290 why did you add the full class name here while >> it's short in all other files? >> Same in all the rest of the file and in StyleSheet class. This is not >> a big deal, but it's inconsistent. >> >> Stylesheet: 535 - the line's too long >> >> With best regards. Petr. >> >> >> On 11 ???? 2014 ?., at 15:30, andrei.eremeev >> wrote: >> >>> Hi Swing team, >>> >>> Please, review the fix for the issue: >>> https://bugs.openjdk.java.net/browse/JDK-8046446 >>> >>> The fix is available at: >>> http://cr.openjdk.java.net/~yan/8046446/webrev.00 >>> >>> Andrei >>> >>> > -- Best regards, Sergey. From Sergey.Bylokhov at oracle.com Fri Jul 25 00:48:53 2014 From: Sergey.Bylokhov at oracle.com (Sergey Bylokhov) Date: Fri, 25 Jul 2014 04:48:53 +0400 Subject: [9] Review Request: JDK-8046596 fix doclint issues in swing classes, part 3 of 4 In-Reply-To: <53A16743.4030302@oracle.com> References: <53A16743.4030302@oracle.com> Message-ID: <53D1A975.1030204@oracle.com> Hi, Andrei. Please double check dots usage. - Description of the class/method/field should be followed by dot. - @param, @return should not end with a dot, except a case when more than one sentences are used. On 18.06.2014 14:17, andrei.eremeev wrote: > Hi Swing team, > > Please, review the fix for the issue: > https://bugs.openjdk.java.net/browse/JDK-8046596 > > The fix is available at: > http://cr.openjdk.java.net/~yan/8046596/webrev.00/ > > Andrei -- Best regards, Sergey. From alexandr.scherbatiy at oracle.com Fri Jul 25 12:45:31 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Fri, 25 Jul 2014 16:45:31 +0400 Subject: [9] Review request for 8051548 JColorChooser should have a way to disable transparency controls Message-ID: <53D2516B.1040100@oracle.com> Hello, Could you review the fix: bug: https://bugs.openjdk.java.net/browse/JDK-8051548 webrev: http://cr.openjdk.java.net/~alexsch/8051548/webrev.00 The following public methods are added to the AbstractColorChooserPanel: - setColorTransparencySelectionEnabled(boolean b) - isColorTransparencySelectionEnabled() The request to the public API change will be created after the technical review. Thanks, Alexandr. From alexandr.scherbatiy at oracle.com Mon Jul 28 14:20:03 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Mon, 28 Jul 2014 18:20:03 +0400 Subject: [9] Review request for 6219960 null reference in ToolTipManager Message-ID: <53D65C13.8040600@oracle.com> Hello, Could you review the fix: bug: https://bugs.openjdk.java.net/browse/JDK-6219960 webrev: http://cr.openjdk.java.net/~alexsch/6219960/webrev.00 The NPE is fixed. Thanks, Alexandr. From petr.pchelko at oracle.com Mon Jul 28 14:26:31 2014 From: petr.pchelko at oracle.com (Petr Pchelko) Date: Mon, 28 Jul 2014 18:26:31 +0400 Subject: [9] Review request for 6219960 null reference in ToolTipManager In-Reply-To: <53D65C13.8040600@oracle.com> References: <53D65C13.8040600@oracle.com> Message-ID: <275D104B-F3D8-4A89-9185-650336AB7C88@oracle.com> Hello, Alexander. The fix looks fine. With best regards. Petr. On 28 ???? 2014 ?., at 18:20, Alexander Scherbatiy wrote: > > Hello, > > Could you review the fix: > bug: https://bugs.openjdk.java.net/browse/JDK-6219960 > webrev: http://cr.openjdk.java.net/~alexsch/6219960/webrev.00 > > > The NPE is fixed. > > Thanks, > Alexandr. > From Sergey.Bylokhov at oracle.com Mon Jul 28 14:37:40 2014 From: Sergey.Bylokhov at oracle.com (Sergey Bylokhov) Date: Mon, 28 Jul 2014 18:37:40 +0400 Subject: [9] Review request for 6219960 null reference in ToolTipManager In-Reply-To: <53D65C13.8040600@oracle.com> References: <53D65C13.8040600@oracle.com> Message-ID: <53D66034.7080000@oracle.com> Hi, Alexander. What about the test? I see that it was added to the bug comment. On 7/28/14 6:20 PM, Alexander Scherbatiy wrote: > > Hello, > > Could you review the fix: > bug: https://bugs.openjdk.java.net/browse/JDK-6219960 > webrev: http://cr.openjdk.java.net/~alexsch/6219960/webrev.00 > > > The NPE is fixed. > > Thanks, > Alexandr. > -- Best regards, Sergey. From steve.sides at oracle.com Mon Jul 28 20:14:34 2014 From: steve.sides at oracle.com (Steve Sides) Date: Mon, 28 Jul 2014 13:14:34 -0700 Subject: Review request for JDK-8050924 fix doclint missing tags in a few javax.swing.plaf.basic classes Message-ID: <53D6AF2A.8010909@oracle.com> Hello, Could you please review the fix for the following bug: https://bugs.openjdk.java.net/browse/JDK-8050924 Webrev corresponding: http://cr.openjdk.java.net/~ssides/8050924/8050924.00/ This addresses a few doclint missing tag and comment issues. thanks, -steve From philip.race at oracle.com Mon Jul 28 22:13:12 2014 From: philip.race at oracle.com (Phil Race) Date: Mon, 28 Jul 2014 15:13:12 -0700 Subject: Review Request for 8042284: Add block tags for @return and @param to swing plaf classes In-Reply-To: <53D03CC8.1040505@oracle.com> References: <53B2D8D7.2000504@oracle.com> <53C824D4.9060406@oracle.com> <53C82751.6070901@oracle.com> <53CFD6DD.4050407@oracle.com> <53D03CC8.1040505@oracle.com> Message-ID: <53D6CAF8.6030309@oracle.com> Looks good. -phil. On 07/23/2014 03:52 PM, Steve Sides wrote: > I see there is a typo introduced in TreeUI.java > 110 pblic abstract boolean isEditing(JTree tree); > > Other than that...please review. > > -steve > On 7/23/2014 8:38 AM, Steve Sides wrote: >> Take 5: http://cr.openjdk.java.net/~ssides/8042284/8042284.5/ >> >> I did a more thorough job also addressing >> >> 1. - 80 column limit. - I fix more egregious violators in all >> files. I left 81's alone. >> 2. - replaced by {@tag }. - changed all these in all files >> addressed >> >> Most missing comments are to be handled separately. There's still >> ~800 of these in the javax.swing packages. >> >> -steve >> >> >> On 7/17/2014 12:43 PM, Phil Race wrote: >>> http://sqeweb.us.oracle.com/coretools/ssides/webrevs/8042284/8042284.4/src/share/classes/javax/swing/plaf/ComponentUI.java.sdiff.html >>> >>> >>> You didn't do anything about the (many) uses of FOO >>> like this :- >>> >>> * Returns true if the specified x,y location is >>> 231 * contained within the look and feel's defined shape of >>> the specified >>> 232 * component. x and y ar >>> >>> Elsewhere (eg) this file >>> http://cr.openjdk.java.net/~serb/8050852/webrev.02/src/share/classes/javax/sound/midi/Instrument.java.sdiff.html >>> >>> in this thread : - >>> http://mail.openjdk.java.net/pipermail/awt-dev/2014-July/008231.html >>> >>> I'm seeing these replaced by {@code FOO} >>> >>> You have used that syntax in your new doc but left alone the others. >>> >>> So it seems you are focused solely on the @param and @throws tags. >>> >>> Is the rest being handled by someone else ? >>> >>> -phil. >>> >>> On 7/17/2014 12:32 PM, Steve Sides wrote: >>>> Hello, >>>> This is a redo of the changes so that they are based on >>>> jdk9/client rather than jdk9/dev. >>>> Could you please review these fixes for doclint warnings for >>>> javax/swing/plaf. >>>> This addresses mostly just missing @param and @return tags. >>>> >>>> bugID: >>>> https://bugs.openjdk.java.net/browse/JDK-8042284 >>>> >>>> Webrev corresponding: >>>> http://sqeweb.us.oracle.com/coretools/ssides/webrevs/8042284/8042284.4/ >>>> >>>> >>>> thanks, >>>> >>>> steve >>>> >>>> >>>> On 7/1/2014 8:50 AM, Steve Sides wrote: >>>>> ------------------------------------------------------------------------ >>>>> >>>>> Hello, >>>>> >>>>> Could you please review the fix for the following bug: >>>>> https://bugs.openjdk.java.net/browse/JDK-8042284 >>>>> >>>>> Webrev corresponding: >>>>> http://cr.openjdk.java.net/~ssides/8042284/8042284.3/ >>>>> >>>>> This addresses missing @parm and @return block tags in javadoc for >>>>> javax/swing/plaf classes as noted by doclint. >>>>> >>>>> It does not address methods which are missing javadoc comment >>>>> altogether, >>>>> of which there are several. >>>>> >>>>> >>>>> thanks, >>>>> >>>>> -steve >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip.race at oracle.com Mon Jul 28 22:16:46 2014 From: philip.race at oracle.com (Phil Race) Date: Mon, 28 Jul 2014 15:16:46 -0700 Subject: Review request for JDK-8050924 fix doclint missing tags in a few javax.swing.plaf.basic classes In-Reply-To: <53D6AF2A.8010909@oracle.com> References: <53D6AF2A.8010909@oracle.com> Message-ID: <53D6CBCE.7070008@oracle.com> http://cr.openjdk.java.net/~ssides/8050924/8050924.00/src/share/classes/javax/swing/plaf/basic/BasicInternalFrameUI.java.sdiff.html new empty line 187 seems superfluous. Please delete before pushing Otherwise seems fine. -phil. On 07/28/2014 01:14 PM, Steve Sides wrote: > Hello, > > Could you please review the fix for the following bug: > https://bugs.openjdk.java.net/browse/JDK-8050924 > > Webrev corresponding: > http://cr.openjdk.java.net/~ssides/8050924/8050924.00/ > > This addresses a few doclint missing tag and comment issues. > > thanks, > > -steve > From dmitriy.ermashov at oracle.com Wed Jul 30 08:00:18 2014 From: dmitriy.ermashov at oracle.com (Dmitriy Ermashov) Date: Wed, 30 Jul 2014 12:00:18 +0400 Subject: Review Request for 8052408: Move AWT_BAT functional tests to OpenJDK (3 of 3) Message-ID: <53D8A612.6040809@oracle.com> Hi Swing team, Please review the third part of functional AWT_BAT tests: http://cr.openjdk.java.net/~dermashov/8052408/webrev.00/ Corresponding bug: https://bugs.openjdk.java.net/browse/JDK-8052408 The first part was sent on review to AWT mailing list. Second part will be represented after first one will be reviewed. These tests are all about swing components. Test were verified on following platforms: Windows 7 x64 Ubuntu 14.04 x64 Ubuntu 10.04 arm Solaris 11 x64 (intel) OS X 10.10 beta -- Thanks, Dima From alexandr.scherbatiy at oracle.com Wed Jul 30 09:03:23 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Wed, 30 Jul 2014 13:03:23 +0400 Subject: Review Request for 8052408: Move AWT_BAT functional tests to OpenJDK (3 of 3) In-Reply-To: <53D8A612.6040809@oracle.com> References: <53D8A612.6040809@oracle.com> Message-ID: <53D8B4DB.3040909@oracle.com> The Swing components should be created and used on EDT. Thanks, Alexandr. On 7/30/2014 12:00 PM, Dmitriy Ermashov wrote: > Hi Swing team, > > Please review the third part of functional AWT_BAT tests: > http://cr.openjdk.java.net/~dermashov/8052408/webrev.00/ > > Corresponding bug: > https://bugs.openjdk.java.net/browse/JDK-8052408 > > The first part was sent on review to AWT mailing list. Second part > will be represented > after first one will be reviewed. > These tests are all about swing components. > > Test were verified on following platforms: > Windows 7 x64 > Ubuntu 14.04 x64 > Ubuntu 10.04 arm > Solaris 11 x64 (intel) > OS X 10.10 beta > From dmitriy.ermashov at oracle.com Wed Jul 30 09:38:58 2014 From: dmitriy.ermashov at oracle.com (Dmitriy Ermashov) Date: Wed, 30 Jul 2014 13:38:58 +0400 Subject: Review Request for 8052408: Move AWT_BAT functional tests to OpenJDK (3 of 3) In-Reply-To: <53D8B4DB.3040909@oracle.com> References: <53D8A612.6040809@oracle.com> <53D8B4DB.3040909@oracle.com> Message-ID: <53D8BD32.6030707@oracle.com> Fixed. Please review the new version: http://cr.openjdk.java.net/~dermashov/8052408/webrev.01/ Thanks, Dima On 07/30/2014 01:03 PM, Alexander Scherbatiy wrote: > > > The Swing components should be created and used on EDT. > > Thanks, > Alexandr. > > On 7/30/2014 12:00 PM, Dmitriy Ermashov wrote: >> Hi Swing team, >> >> Please review the third part of functional AWT_BAT tests: >> http://cr.openjdk.java.net/~dermashov/8052408/webrev.00/ >> >> Corresponding bug: >> https://bugs.openjdk.java.net/browse/JDK-8052408 >> >> The first part was sent on review to AWT mailing list. Second part >> will be represented >> after first one will be reviewed. >> These tests are all about swing components. >> >> Test were verified on following platforms: >> Windows 7 x64 >> Ubuntu 14.04 x64 >> Ubuntu 10.04 arm >> Solaris 11 x64 (intel) >> OS X 10.10 beta >> > From alexandr.scherbatiy at oracle.com Wed Jul 30 10:20:52 2014 From: alexandr.scherbatiy at oracle.com (Alexander Scherbatiy) Date: Wed, 30 Jul 2014 14:20:52 +0400 Subject: Review Request for 8052408: Move AWT_BAT functional tests to OpenJDK (3 of 3) In-Reply-To: <53D8BD32.6030707@oracle.com> References: <53D8A612.6040809@oracle.com> <53D8B4DB.3040909@oracle.com> <53D8BD32.6030707@oracle.com> Message-ID: <53D8C704.3060105@oracle.com> The fix looks good to me. Thanks, Alexandr. On 7/30/2014 1:38 PM, Dmitriy Ermashov wrote: > Fixed. > Please review the new version: > http://cr.openjdk.java.net/~dermashov/8052408/webrev.01/ > > Thanks, > Dima > > On 07/30/2014 01:03 PM, Alexander Scherbatiy wrote: >> >> >> The Swing components should be created and used on EDT. >> >> Thanks, >> Alexandr. >> >> On 7/30/2014 12:00 PM, Dmitriy Ermashov wrote: >>> Hi Swing team, >>> >>> Please review the third part of functional AWT_BAT tests: >>> http://cr.openjdk.java.net/~dermashov/8052408/webrev.00/ >>> >>> Corresponding bug: >>> https://bugs.openjdk.java.net/browse/JDK-8052408 >>> >>> The first part was sent on review to AWT mailing list. Second part >>> will be represented >>> after first one will be reviewed. >>> These tests are all about swing components. >>> >>> Test were verified on following platforms: >>> Windows 7 x64 >>> Ubuntu 14.04 x64 >>> Ubuntu 10.04 arm >>> Solaris 11 x64 (intel) >>> OS X 10.10 beta >>> >> > From dmitriy.ermashov at oracle.com Wed Jul 30 10:27:23 2014 From: dmitriy.ermashov at oracle.com (Dmitriy Ermashov) Date: Wed, 30 Jul 2014 14:27:23 +0400 Subject: Review Request for 8052408: Move AWT_BAT functional tests to OpenJDK (3 of 3) In-Reply-To: <53D8C704.3060105@oracle.com> References: <53D8A612.6040809@oracle.com> <53D8B4DB.3040909@oracle.com> <53D8BD32.6030707@oracle.com> <53D8C704.3060105@oracle.com> Message-ID: <53D8C88B.50802@oracle.com> Thanks for review! Dima On 30.07.2014 14:20, Alexander Scherbatiy wrote: > > The fix looks good to me. > > Thanks, > Alexandr. > > On 7/30/2014 1:38 PM, Dmitriy Ermashov wrote: >> Fixed. >> Please review the new version: >> http://cr.openjdk.java.net/~dermashov/8052408/webrev.01/ >> >> Thanks, >> Dima >> >> On 07/30/2014 01:03 PM, Alexander Scherbatiy wrote: >>> >>> >>> The Swing components should be created and used on EDT. >>> >>> Thanks, >>> Alexandr. >>> >>> On 7/30/2014 12:00 PM, Dmitriy Ermashov wrote: >>>> Hi Swing team, >>>> >>>> Please review the third part of functional AWT_BAT tests: >>>> http://cr.openjdk.java.net/~dermashov/8052408/webrev.00/ >>>> >>>> Corresponding bug: >>>> https://bugs.openjdk.java.net/browse/JDK-8052408 >>>> >>>> The first part was sent on review to AWT mailing list. Second part >>>> will be represented >>>> after first one will be reviewed. >>>> These tests are all about swing components. >>>> >>>> Test were verified on following platforms: >>>> Windows 7 x64 >>>> Ubuntu 14.04 x64 >>>> Ubuntu 10.04 arm >>>> Solaris 11 x64 (intel) >>>> OS X 10.10 beta >>>> >>> >> > From robbiexgibson at yahoo.com Thu Jul 31 12:54:46 2014 From: robbiexgibson at yahoo.com (Robert Gibson) Date: Thu, 31 Jul 2014 05:54:46 -0700 Subject: JDK 9 RFR of JDK-8043550 : Fix raw and unchecked lint warnings in javax.swing.* Message-ID: <1406811286.56331.YahooMailNeo@web121301.mail.ne1.yahoo.com> On Mon Jun 30 16:20:50 UTC 2014, Joe Darcy wrote: > It was not immediately clear how javax.swing.tree.TreeNode.children(),? > which returns a raw Enumeration, should be generified. I changed it to > Enumeration children(); and that seems to work fine. Something like > Enumeration with a covariant override would save a few casts in a private? > implementation, but generally doesn't seem to be a good trade-off since? > many normal clients could be inconvenienced dealing with the wildcard.? Hi Joe, We have a few implementations of TreeNode that look like this: class MyTreeNode implements TreeNode { ? public Enumeration children() { ... } } They don't compile any more after the change to TreeNode. Maybe something like this would have fewer compatibility issues? public interface TreeNode { ? ... ? Enumeration children(); ? ... } Regards, Robert