Re: RFR: 8044862: Fix raw and unchecked lint warnings in macosx specific code

2014-06-27 Thread Henry Jen
  On June 27, 2014 at 3:00:13 PM, Joe Darcy (joe.da...@oracle.com(mailto:joe.da...@oracle.com)) wrote: > Hi Henry, > > Your changes look good to me (I assume there was an issue using > wildcards in AquaComboBoxButton.java). > Cannot make it to work. The problematic code is in line 169,  16

Re: Long valueOf instead of new Long

2014-06-27 Thread Otávio Gonçalves de Santana
I found more two unnecessary valueOf. About Andrej, is it not possible add two people in "Contributed-by:" tag? diff -r d02b062bc827 src/share/classes/com/sun/tools/example/debug/tty/Commands.java --- a/src/share/classes/com/sun/tools/example/debug/tty/Commands.java Fri Jun 13 11:21:30 2014 -0700

Re: RFR: 8044862: Fix raw and unchecked lint warnings in macosx specific code

2014-06-27 Thread Joe Darcy
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 de

RFR: 8044862: Fix raw and unchecked lint warnings in macosx specific code

2014-06-27 Thread Henry Jen
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-804833

Re: Long valueOf instead of new Long

2014-06-27 Thread Andrej Golovnin
Hi Pavel, I'm not sure what the style guide for the source code says, but there is a space between the cast operator and the field name in src/share/classes/com/sun/jmx/snmp/daemon/SnmpAdaptorServer.java (line 881): @Override public Long getSnmpOutGenErrs() { -return new Long(sn

RFR 8047737 Move array component mirror to instance of java/lang/Class

2014-06-27 Thread Coleen Phillimore
Summary: Add field in java.lang.Class for componentType to simplify oop processing and intrinsics in JVM This is part of ongoing work to clean up oop pointers in the metadata and simplify the interface between the JDK j.l.C and the JVM. There's a performance benefit at the end of all of this

Re: RFR [9] 8041972: Add improved parse/format methods for Long/Integer

2014-06-27 Thread Claes Redestad
Hi, updated webrev:http://cr.openjdk.java.net/~redestad/8041972/webrev.11 Changes: - Remove use of IllegalArgumentException in favor of IndexOutOfBoundsException/NumberFormatException, making the new methods behave in line with how String.substring wouldat some edge cases: "100".substring(

Re: RFR : 7095856: OutputStreamHook doesn't handle null values

2014-06-27 Thread Lance Andersen
looks fine Sean On Jun 27, 2014, at 8:35 AM, Seán Coffey wrote: > Looking for a review around this CORBA issue. > > bug report : https://bugs.openjdk.java.net/browse/JDK-7095856 > webrev : http://cr.openjdk.java.net/~coffeys/webrev.7095856/ > > Null values cause issue when processed by an IIOP

Re: [9] Request for Review: 8048337: Examine if macosx/bundle/JavaAppLauncher and JavaAppLauncher.java can be removed

2014-06-27 Thread David DeHaven
>> The Java source was being built and included in rt.jar, but it would not run >> because jdk/src/macosx/native/apple/launcher/JavaAppLauncher.m (implementing >> the two native methods) was not being built so it would have died with an >> UnsatisfiedLinkError. The Xcode project is not referenc

Re: [9] Request for Review: 8048337: Examine if macosx/bundle/JavaAppLauncher and JavaAppLauncher.java can be removed

2014-06-27 Thread Mandy Chung
Hi Dave, On 6/27/2014 9:31 AM, David DeHaven wrote: As the subject says, so examined and determined that it can indeed be removed. Good to see unused code be removed from the repo! The Java source was being built and included in rt.jar, but it would not run because jdk/src/macosx/native/ap

[9] Request for Review: 8048337: Examine if macosx/bundle/JavaAppLauncher and JavaAppLauncher.java can be removed

2014-06-27 Thread David DeHaven
As the subject says, so examined and determined that it can indeed be removed. The Java source was being built and included in rt.jar, but it would not run because jdk/src/macosx/native/apple/launcher/JavaAppLauncher.m (implementing the two native methods) was not being built so it would have d

Re: Long valueOf instead of new Long

2014-06-27 Thread Pavel Rappo
I've just created a webrev with all the changes we've discussed so far. Plus some more I've spotted while looking into the code. Please note, this webrev is not incremental. It grabs all the changes between the original patch and the latest discussed: http://cr.openjdk.java.net/~prappo/8048267/

Re: Ready for Review : 8042469 : Launcher changes for native memory tracking scalability enhancement

2014-06-27 Thread Kumar Srinivasan
Looks fine. Kumar On 6/26/2014 8:12 AM, Neil Toda wrote: Zhengyu Earlier creation of the environmental variable. http://cr.openjdk.java.net/~ntoda/8042469/webrev-07/ The new webrev [07] places the new code in the function SetJvmEnvironment() === . JLI_Launch() . InitLauncher() . Crea

RFR : 7095856: OutputStreamHook doesn't handle null values

2014-06-27 Thread Seán Coffey
Looking for a review around this CORBA issue. bug report : https://bugs.openjdk.java.net/browse/JDK-7095856 webrev : http://cr.openjdk.java.net/~coffeys/webrev.7095856/ Null values cause issue when processed by an IIOPOutputStream and I can't see a reason why they wouldn't be allowed. Note that

Re: Long valueOf instead of new Long

2014-06-27 Thread Pavel Rappo
Hi Andrej, They are not identical. Maybe it's just hard to spot it as it's not an incremental webrev. Have a look at (line 583): http://cr.openjdk.java.net/~prappo/8048267/webrev.00/src/share/classes/javax/management/modelmbean/RequiredModelMBean.java.sdiff.html http://cr.openjdk.java.net/~prap

Re: Long valueOf instead of new Long

2014-06-27 Thread Andrej Golovnin
Hi Pavel, the both web revs looks identical to me. Here is what I have found so far in the webrev.01: in src/share/classes/com/sun/security/auth/SolarisNumericGroupPrincipal.java: @@ -108,11 +108,11 @@ * @param primaryGroup true if the specified GID represents the *

Re: Long valueOf instead of new Long

2014-06-27 Thread Pavel Rappo
I created an issue to track the progress and also made 2 webrevs. One for the original patch and one for the changes that have been suggested earlier in this thread by Paul and Andrej. Here we go: https://bugs.openjdk.java.net/browse/JDK-8048267 http://cr.openjdk.java.net/~prappo/8048267/webrev

Re: RFR: 8048207 : (xs) Collections.checkedQueue offer() calls add() on wrapped queue

2014-06-27 Thread Paul Sandoz
On Jun 27, 2014, at 1:58 AM, Mike Duigou wrote: > Hello all; > > This changeset corrects an issue with the Collections.checkedQueue() utility > method added in Java 8. The wrapper implementation incorrectly calls add() on > the wrapped queue rather than offer(). > > I improved the existing u

Re: Streams and Spliterator characteristics confusion

2014-06-27 Thread Paul Sandoz
On Jun 27, 2014, at 9:06 AM, Kasper Nielsen wrote: > Hi, > > I'm trying to understand how the Spliterator.characteristics are maintained > across stream operations and I'm a bit confused. Maybe someone here can > clear it up for me > Internally in the stream pipeline we keep track of certain ch

Re: RFR [9] 8041972: Add improved parse/format methods for Long/Integer

2014-06-27 Thread Paul Sandoz
On Jun 26, 2014, at 6:53 PM, Claes Redestad wrote: > On 06/25/2014 06:43 PM, Paul Sandoz wrote: >> On Jun 19, 2014, at 7:39 PM, Claes Redestad >> wrote: >>> Hi, >>> >>> an updated webrev with reworked, public methods is available here: >>> http://cr.openjdk.java.net/~redestad/8041972/webrev.8

Streams and Spliterator characteristics confusion

2014-06-27 Thread Kasper Nielsen
Hi, I'm trying to understand how the Spliterator.characteristics are maintained across stream operations and I'm a bit confused. Maybe someone here can clear it up for me s.sorted().spliterator() -> Spliterator.SORTED = true But if I use specify a comparator the stream is not sorted s.sorted((a,b