Re: Request for Review : CR#8004015 : [2nd pass] Add interface extends and defaults for basic functional interfaces

2012-12-05 Thread Lance Andersen - Oracle
I am still wondering if we need some sort of javadoc tag for default implementations so that it will stand out better and allow us to be consistent with how we specify this across Java SE and other APIs that leverage default methods. Has any thought been given to this? Best Lance On Dec 5, 20

Proposal: Fully Concurrent ClassLoading

2012-12-05 Thread David Holmes
Java 7 introduced support for parallel classloading by adding to each class loader a ConcurrentHashMap, referenced through a new field, parallelLockMap. This contains a mapping from class names to Objects to use as a classloading lock for that class name. This scheme has a number of inefficienc

hg: jdk8/tl/jdk: 8004491: Build breakage on Linux due to 8004188

2012-12-05 Thread alan . bateman
Changeset: b54a5b7d2e65 Author:alanb Date: 2012-12-05 12:20 + URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/b54a5b7d2e65 8004491: Build breakage on Linux due to 8004188 Reviewed-by: chegar, erikj ! makefiles/CopyFiles.gmk

Re: CFR: javax.xml.parsers: Using ServiceLoader to load JAXP parser factories (7169894: JAXP Plugability Layer: using service loader)

2012-12-05 Thread Alan Bateman
On 04/12/2012 15:55, Daniel Fuchs wrote: So that would be the wording: * Uses the service-provider loading facilities, defined by the * {@link java.util.ServiceLoader} class, to attempt to locate * and load an implementation of the service. If there are * providers other tha

Re: CFR: javax.xml.parsers: Using ServiceLoader to load JAXP parser factories (7169894: JAXP Plugability Layer: using service loader)

2012-12-05 Thread Daniel Fuchs
On 12/5/12 3:45 PM, Alan Bateman wrote: On 04/12/2012 15:55, Daniel Fuchs wrote: So that would be the wording: * Uses the service-provider loading facilities, defined by the * {@link java.util.ServiceLoader} class, to attempt to locate * and load an implementation of the service

Re: CFR: javax.xml.parsers: Using ServiceLoader to load JAXP parser factories (7169894: JAXP Plugability Layer: using service loader)

2012-12-05 Thread Alan Bateman
On 05/12/2012 14:56, Daniel Fuchs wrote: Or maybe: "Otherwise, the default implementation, if present, is returned" ? I think the original intent was to make provision for the case where the implementation module would not be installed That is longer term intent, meaning when we go do modu

Re: 8003562: Provide a command-line tool to find static dependencies

2012-12-05 Thread Alan Bateman
On 04/12/2012 20:15, Mandy Chung wrote: Alan - thanks for the feedback. I have made several changes to the jdeps tool. Here is the new webrev at: http://cr.openjdk.java.net/~mchung/jdk8/webrevs/8003562/langtools-webrev.01/ I'll send out a formal code review request once I add the new unit t

Re: CFR: javax.xml.parsers: Using ServiceLoader to load JAXP parser factories (7169894: JAXP Plugability Layer: using service loader)

2012-12-05 Thread Daniel Fuchs
Hi, Please find below a revised version of the changes for the javax.xml.parsers package. It hopefully incorporates all comments I have received so far. * better wording/formating for Javadoc changes * using for( : )

Re: RFR: 8004317 TestLibrary.getUnusedRandomPort() fails intermittently, but exception not reported

2012-12-05 Thread Jim Gish
Thanks for the suggestions, Stuart. BTW printStackTrace() prints to standard error by default -- that's why I don't explicitly have it in there. Cheers, Jim On 12/04/2012 07:06 PM, Stuart Marks wrote: Hi Jim, (Looks like you're cleaning up warnings along the way. I guess that's OK.) Be

Re: Request for Review : CR#8004015 : [2nd pass] Add interface extends and defaults for basic functional interfaces

2012-12-05 Thread Mike Duigou
On Dec 4 2012, at 22:10 , David Holmes wrote: > Hi Mike, > > In multiple places: > > + * xxx ... > > Should that be tag? Is it actually needed? (my javadoc is a bit rusty). Many of these were added/changed by NetBeans styler. I then added additional instances. I have converted all of the -

Re: Request for Review : CR#8004015 : [final (?) pass] Add interface extends and defaults for basic functional interfaces

2012-12-05 Thread Mike Duigou
I have updated webrev again to fix some reported javadoc technical issues and added null handling specification to the {Int|Double|Long}Supplier. http://cr.openjdk.java.net/~mduigou/8004015/2/webrev/ http://cr.openjdk.java.net/~mduigou/8004015/2/specdiff/java/util/function/package-summary.html I

Re: CFR: javax.xml.parsers: Using ServiceLoader to load JAXP parser factories (7169894: JAXP Plugability Layer: using service loader)

2012-12-05 Thread Joe Wang
Hi Daniel, Looks good to me! -Joe On 12/5/2012 8:17 AM, Daniel Fuchs wrote: Hi, Please find below a revised version of the changes for the javax.xml.parsers package. It hopefully incorporates all comments I have received so far.

8004371: (props) Properties.loadFromXML needs small footprint XML parser as fallback when JAXP is not present

2012-12-05 Thread Alan Bateman
A while back [1], I brought up the issue of the Properties storeToXML/loadFromXML methods being problematic for our efforts to modularize the JDK and also the Compact Profiles effort. At the time I mentioned that we were thinking of including a small footprint XML parser that we could use in

RFR: 8003246: Add Supplier to ThreadLocal

2012-12-05 Thread Akhil Arora
This patch adds a constructor to ThreadLocal to supply initial values using the new Supplier functional interface. Please review. This work was done by Jim Gish. http://cr.openjdk.java.net/~akhil/8003246.0/webrev/ http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8003246 Thanks

Re: RFR: 8004317 TestLibrary.getUnusedRandomPort() fails intermittently, but exception not reported

2012-12-05 Thread Stuart Marks
On 12/5/12 8:41 AM, Jim Gish wrote: BTW printStackTrace() prints to standard error by default -- that's why I don't explicitly have it in there. Oh yes, so it does. Sorry, I was confused. s'marks

Re: RFR: 8003246: Add Supplier to ThreadLocal

2012-12-05 Thread Mike Duigou
Looks good to me. Mike On Dec 5 2012, at 11:39 , Akhil Arora wrote: > This patch adds a constructor to ThreadLocal to supply initial values using > the new Supplier functional interface. Please review. This work was done by > Jim Gish. > > http://cr.openjdk.java.net/~akhil/8003246.0/webrev/ >

Re: RFR: 8003246: Add Supplier to ThreadLocal

2012-12-05 Thread Doug Lea
On 12/05/12 14:39, Akhil Arora wrote: This patch adds a constructor to ThreadLocal to supply initial values using the new Supplier functional interface. Please review. This work was done by Jim Gish. http://cr.openjdk.java.net/~akhil/8003246.0/webrev/ http://bugs.sun.com/bugdatabase/view_bug.do

Re: RFR: 8003246: Add Supplier to ThreadLocal

2012-12-05 Thread Remi Forax
On 12/05/2012 08:51 PM, Doug Lea wrote: On 12/05/12 14:39, Akhil Arora wrote: This patch adds a constructor to ThreadLocal to supply initial values using the new Supplier functional interface. Please review. This work was done by Jim Gish. http://cr.openjdk.java.net/~akhil/8003246.0/webrev/ h

Re: RFR: 8004317 TestLibrary.getUnusedRandomPort() fails intermittently, but exception not reported

2012-12-05 Thread Jim Gish
Here's a new version for your consideration :-) http://cr.openjdk.java.net/~jgish/Bug8004317-TestLibrary-getUnusedRandomPort-Failure/ Thanks, Jim On 12/05/2012 02:45 PM, Stuart Marks wrote: On 12/5/1

Re: Review Request: 8004201: add reducers to primitive type wrappers

2012-12-05 Thread Akhil Arora
Updated - http://cr.openjdk.java.net/~akhil/8004201.1/webrev/ - delegate to Math.min/max for int/long/float/double - rename Boolean.and/or/xor to logicalAnd/logicalOr/logicalXor - removed Character variants of min/max/sum On 12/02/2012 05:50 PM, David Holmes wrote: Hi Akhil, Is it really neces

Re: Review Request: 8004201: add reducers to primitive type wrappers

2012-12-05 Thread Vitaly Davidovich
Regarding Character methods; it's unorthodox but some people use them as "fake" unsigned shorts. Whether that's enough to justify adding sum/max/min, I don't know. Sent from my phone On Dec 5, 2012 4:28 PM, "Akhil Arora" wrote: > Updated - > http://cr.openjdk.java.net/~**akhil/8004201.1/webrev

Re: CFR: javax.xml.parsers: Using ServiceLoader to load JAXP parser factories (7169894: JAXP Plugability Layer: using service loader)

2012-12-05 Thread Mandy Chung
Hi Daniel, Looks good to me. One question - the last bullet in the search order covers the default implementation case: "Platform default DocumentBuilderFactory instance." Would it make sense to merge the statement "Otherwise, the default implementation, if present, is returned" with the a

Re: 8003562: Provide a command-line tool to find static dependencies

2012-12-05 Thread Ulf Zibis
Yeah, this is a great tool. Does it also help to find the need to recompile a class if the source of a inlined referred static final constant has changed? -Ulf Am 28.11.2012 00:18, schrieb Mandy Chung: As part of prepare for modules [1], this RFE is to provide a command-line tool in JDK8 so

Review request: 8004042 : Arrrghs.java test failed on windows with access error.

2012-12-05 Thread David DeHaven
A fix for intermittent test failures causing grief on Windows, particularly Windows 7 and 2008 systems: http://cr.openjdk.java.net/~ddehaven/8004042/webrev.1/ The underlying cause is as of yet unknown, but I was able to create an environment that caused similar failures by running "watch -n 0.2

Re: Review Request: 8004201: add reducers to primitive type wrappers

2012-12-05 Thread Joseph Darcy
Akhil, In javadoc like this 298 * as {@code BinaryOperator}. you don't have to use "<" and the like inside {@code}; please change to 298 * as {@code BinaryOperator}. As a general comment, if the operations for primitive type Foo are put into java.lang.Foo, then the type of

Re: RFR: 8004317 TestLibrary.getUnusedRandomPort() fails intermittently, but exception not reported

2012-12-05 Thread Stuart Marks
OK, looks better, more explicit so that we can find out why this is failing. There's still a subtle issue in the reporting though. Consider if on attempt N the ServerSocket call gets a valid port but it's one of the reserved ports. Then, unusedRandomPort will be >= 0 and isReservedPort() will b

Re: RFR: 8004317 TestLibrary.getUnusedRandomPort() fails intermittently, but exception not reported

2012-12-05 Thread Jim Gish
Thanks Stuart. Sure - go ahead and make the change and do the push. Maybe we'll get lucky with the nightlies! Thanks again, Jim On 12/05/2012 06:54 PM, Stuart Marks wrote: OK, looks better, more explicit so that we can find out why this is failing. There's still a subtle issue in the rep

Review request: 8003562: Provide a command-line tool to find static dependencies

2012-12-05 Thread Mandy Chung
This review request (add a new jdeps tool in the JDK) include changes in langtools and the jdk build. I would need reviewers from the langtools and the build-infra team. Webrev for review: http://cr.openjdk.java.net/~mchung/jdk8/webrevs/jdeps/langtools-webrev.02/ http://cr.openjdk.java.n

Re: RFR: 8003246: Add Supplier to ThreadLocal

2012-12-05 Thread David Holmes
On 6/12/2012 5:39 AM, Akhil Arora wrote: This patch adds a constructor to ThreadLocal to supply initial values using the new Supplier functional interface. Please review. This work was done by Jim Gish. http://cr.openjdk.java.net/~akhil/8003246.0/webrev/ http://bugs.sun.com/bugdatabase/view_bug.

hg: jdk8/tl/jdk: 8004317: TestLibrary.getUnusedRandomPort() fails intermittently, but exception not reported

2012-12-05 Thread stuart . marks
Changeset: a971516029ab Author:jgish Date: 2012-12-05 21:08 -0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a971516029ab 8004317: TestLibrary.getUnusedRandomPort() fails intermittently, but exception not reported Reviewed-by: alanb, dmocek, smarks ! test/java/rmi/testlibrary

Re: RFR: 8004317 TestLibrary.getUnusedRandomPort() fails intermittently, but exception not reported

2012-12-05 Thread Stuart Marks
Pushed: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a971516029ab I couldn't resist doing a couple more fixups. (Man, there is a lot more cleaning up that could be done in here.) I don't know if I got this in time for tonight's nightly. Well, get it in there and see if it falls over sooner or

Re: Review request: 8004042 : Arrrghs.java test failed on windows with access error.

2012-12-05 Thread Stuart Marks
On 12/5/12 2:44 PM, David DeHaven wrote: A fix for intermittent test failures causing grief on Windows, particularly Windows 7 and 2008 systems: http://cr.openjdk.java.net/~ddehaven/8004042/webrev.1/ The underlying cause is as of yet unknown, but I was able to create an environment that cau

Re: Request for Review : CR#8004015 : [final (?) pass] Add interface extends and defaults for basic functional interfaces

2012-12-05 Thread David Holmes
On 6/12/2012 4:20 AM, Mike Duigou wrote: I have updated webrev again to fix some reported javadoc technical issues and added null handling specification to the {Int|Double|Long}Supplier. http://cr.openjdk.java.net/~mduigou/8004015/2/webrev/ http://cr.openjdk.java.net/~mduigou/8004015/2/specdiff

Request for Review: CR#8001667, second attempt

2012-12-05 Thread Henry Jen
Hi, This update reflect changes based on feedbacks for last version, the changes are - rename reverse() to reverseOrder() - rename Comparator.compose to Comparator.thenComparing - add 4 Comparator.thenComparing methods take [Int|Long|Double]Function to enable fluent syntax like this example, peo