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

2012-12-07 Thread Joe Wang
I would think that it's good to merge the 3rd and 4th steps for a jdk in module mode. In regular mode or JDK8, where the existence of the default implementation is guaranteed, the last step is still necessary. It is a requirement for the API implementation. I probably was wrong to use "defa

Re: Request for Review: CR#8001667, second attempt

2012-12-07 Thread Peter Levart
Hi Henry, I don't know what the plans are about moving the static methods in Comparators to the Comparator interface when static interface methods are enabled, but if that is planned, there will be a clash between Comparator.reverseOrder() default method and static method with same name and s

Re: Request for review: JDK-8004337: java/sql tests aren't run in test/Makefile

2012-12-07 Thread Alan Bateman
On 06/12/2012 21:22, Rob McKenna wrote: Hi folks, There's a missing folder in the jdk_other test target: http://cr.openjdk.java.net/~robm/8004337/webrev.01/ -Rob Thanks for catching this, looks good to me. -Alan

Re: Misleading documentation for class java.nio.charset.spi.CharsetProvider

2012-12-07 Thread Alan Bateman
On 06/12/2012 22:03, Christian Schulte wrote: : Or update the code to use the thread context class loader if possible. This would allow using custom charset providers with e.g. Webstart. Anyway. Thanks for taking a look. Using the TCCL for charset providers is highly problematic, this is a case

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

2012-12-07 Thread Alan Bateman
On 07/12/2012 08:04, Joe Wang wrote: I would think that it's good to merge the 3rd and 4th steps for a jdk in module mode. In regular mode or JDK8, where the existence of the default implementation is guaranteed, the last step is still necessary. It is a requirement for the API implementatio

Re: RFR: 8003246: Add Supplier to ThreadLocal

2012-12-07 Thread Doug Lea
On 12/06/12 18:44, Remi Forax wrote: BTW, at some point, it will be a good idea to get ride of all these method access$000 in java.lang/java.util at least. Maybe this is out of scope for this CR, but while in the neighborhood of ThreadLocal, it could be done here. There are a couple of annoyi

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

2012-12-07 Thread Daniel Fuchs
Hi Alan, I have updated the webrev according to your suggestion. I think it makes things much clearer. The new version is there: On 12/7/12 2:12 PM, Alan Bateman wrote: On 07/12/2012 08:04, Joe Wang wrote: I woul

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

2012-12-07 Thread David DeHaven
> OK, looks pretty good. But > > One little thing is still bothering me. Suppose we get interrupted from the > sleep() and bail out on that basis. If we got to the point where we're > sleeping, we must have caught an AccessDeniedException previously. > Unfortunately this exception is disca

Re: RFR: 8003246: Add Supplier to ThreadLocal

2012-12-07 Thread Chris Hegarty
I filed 8004707: "Remove superfluous access$000 methods in java.util", to track this issue. I can file a separate issue for java.lang. I'm sure there are other ways, but a simple find reports them: :>pwd build/solaris-i586/classes/java/util :> find . -name "*.class" -exec javap -v {} \; |

Re: RFR: 8003246: Add Supplier to ThreadLocal

2012-12-07 Thread Remi Forax
On 12/07/2012 04:34 PM, Chris Hegarty wrote: I filed 8004707: "Remove superfluous access$000 methods in java.util", to track this issue. I can file a separate issue for java.lang. yes, please do that. I'm sure there are other ways, but a simple find reports them: :>pwd build/solaris-i586

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

2012-12-07 Thread Stuart Marks
On 12/7/12 7:38 AM, David DeHaven wrote: (There's another issue which is that if there were previous retries, the ADEs from them are thrown away. But maybe we should save that one for another day.) I had the same thought, but aside from collecting and reporting all of them somehow I'm not sur

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

2012-12-07 Thread Kumar Srinivasan
OK, looks pretty good. But One little thing is still bothering me. Suppose we get interrupted from the sleep() and bail out on that basis. If we got to the point where we're sleeping, we must have caught an AccessDeniedException previously. Unfortunately this exception is discarded if we w

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

2012-12-07 Thread Alan Bateman
On 07/12/2012 15:15, Daniel Fuchs wrote: Hi Alan, I have updated the webrev according to your suggestion. I think it makes things much clearer. The new version is there: This looks good to me except that "implement

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

2012-12-07 Thread David DeHaven
>>> (There's another issue which is that if there were previous retries, the >>> ADEs from them are thrown away. But maybe we should save that one for >>> another day.) >> >> I had the same thought, but aside from collecting and reporting all of them >> somehow I'm not sure what could be done

RFR: JDK-8003890: modify test scripts to pass VMOPTIONS

2012-12-07 Thread Mark Sheppard
test scripts have been updated to invoke the JVM with an env variable TESTVMOPTS which carries the vm options to be passed when the jvm is invoked in the test. webrev location: http://cr.openjdk.java.net/~chegar/8003890/webrev.00/ regards Mark

Re: Request for Review: CR#8001667, second attempt

2012-12-07 Thread Henry Jen
On Dec 7, 2012, at 1:09 AM, Peter Levart wrote: > Hi Henry, > > I don't know what the plans are about moving the static methods in > Comparators to the Comparator interface when static interface methods are > enabled, but if that is planned, there will be a clash between > Comparator.reverse

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

2012-12-07 Thread David DeHaven
(There's another issue which is that if there were previous retries, the ADEs from them are thrown away. But maybe we should save that one for another day.) >>> >>> I had the same thought, but aside from collecting and reporting all of them >>> somehow I'm not sure what could be

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

2012-12-07 Thread Mandy Chung
On 12/7/12 8:32 AM, Alan Bateman wrote: On 07/12/2012 15:15, Daniel Fuchs wrote: Hi Alan, I have updated the webrev according to your suggestion. I think it makes things much clearer. The new version is there: Thi

RFR: 8004651 - TEST: java/util/logging/CheckLockLocationTest.java failed to delete file (win)

2012-12-07 Thread Jim Gish
Please review http://cr.openjdk.java.net/~jgish/Bug8004651-CheckLockLocationTest-Windows-delete-file-fix/ Summary -- failure to delete a test log should be a warning instead of a failure. Also, whi

Re: RFR: JDK-8003890: modify test scripts to pass VMOPTIONS

2012-12-07 Thread Alan Bateman
On 07/12/2012 16:57, Mark Sheppard wrote: test scripts have been updated to invoke the JVM with an env variable TESTVMOPTS which carries the vm options to be passed when the jvm is invoked in the test. webrev location: http://cr.openjdk.java.net/~chegar/8003890/webrev.00/ regards Mark

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

2012-12-07 Thread Mandy Chung
On 12/5/12 10:58 AM, Alan Bateman wrote: http://cr.openjdk.java.net/~alanb/8004371/webrev/ Yay! Properties no longer requires JAXP to be present in order to load/store properties in XML format. This looks okay to me. Some minor comments: XMLStreamWriterImpl.isEncodingSupported - it retu

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

2012-12-07 Thread Mike Duigou
On Dec 6 2012, at 03:59 , Chris Hegarty wrote: > Mike, > > Some small comments. > > 1) IntUnaryOperator.java > >Typo in: > + 30 * This is the primitive type specialization of {@link > IntUnaryOperator} for > + 31 * {@code int} and also may be used as a {@code > IntUnaryOperator}. Wh

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

2012-12-07 Thread David DeHaven
Hopefully final webrev for this change: http://cr.openjdk.java.net/~ddehaven/8004042/webrev.3/ I moved the createBatFile method to TestHelper as I thought it could be useful to other tests and added more diagnostic info. It turns out the culprit on my machine was Windows' "Application Experienc

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

2012-12-07 Thread Mandy Chung
This is the updated webrev. It includes Erik's makefile changes and small change - be consistent with javap, jdeps can take classnames as the input argument or wildcard "*" to analyze all class files that replaces the "-all" option. Webrev: http://cr.openjdk.java.net/~mchung/jdk8/webrevs/jdeps

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

2012-12-07 Thread Alan Bateman
On 07/12/2012 19:38, Mandy Chung wrote: : Yay! Properties no longer requires JAXP to be present in order to load/store properties in XML format. This looks okay to me. Some minor comments: Thanks for going through it, I'll leave it Joe to respond as he did the work. : As you mentioned,

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

2012-12-07 Thread Mandy Chung
On 12/7/12 2:14 PM, Alan Bateman wrote: One question though - jdk.internal.org.xml.sax.** are copied from JAXP source. What should the copyright years be? It currently retains the same value from the original copy. As the package has changed then the end year should probably be changed (which

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

2012-12-07 Thread Joe Wang
Thanks for reviewing the changes. Please see comments inline. On 12/7/2012 11:38 AM, Mandy Chung wrote: On 12/5/12 10:58 AM, Alan Bateman wrote: http://cr.openjdk.java.net/~alanb/8004371/webrev/ Yay! Properties no longer requires JAXP to be present in order to load/store properties in XML

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

2012-12-07 Thread Mandy Chung
On 12/7/12 3:24 PM, Joe Wang wrote: Thanks for reviewing the changes. Please see comments inline. On 12/7/2012 11:38 AM, Mandy Chung wrote: On 12/5/12 10:58 AM, Alan Bateman wrote: http://cr.openjdk.java.net/~alanb/8004371/webrev/ Yay! Properties no longer requires JAXP to be present in o

Re: Proposal: Fully Concurrent ClassLoading

2012-12-07 Thread Mandy Chung
On 12/5/12 3:59 AM, David Holmes wrote: 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.

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

2012-12-07 Thread Stuart Marks
On 12/7/12 1:39 PM, David DeHaven wrote: Hopefully final webrev for this change: http://cr.openjdk.java.net/~ddehaven/8004042/webrev.3/ I moved the createBatFile method to TestHelper as I thought it could be useful to other tests and added more diagnostic info. It turns out the culprit on my

RFR: 8001647: In-place methods on Collection/List

2012-12-07 Thread Akhil Arora
As part of the Library Lambdafication, this patch adds the following default methods to Collections - Iterable.forEach(Block) Collection.removeAll(Predicate) List.sort(Comparator) List.replaceAll(UnaryOperator) It also provides more efficient implementations of these methods for ArrayList, Vec