Re: JDK 8 (initial) RFR for JDK-8005294 : Consider default methods for additions to AnnotatedElement

2013-10-25 Thread Joe Darcy
Hi Peter, The concerns you raise below are some of the trade-offs I was thinking of as I was working on the current implementation :-) From a specification perspective, I'd like the @implSpec for this method to allow different combinations of calling getDeclaredAnnotation(Class) and getDecla

Re: RFR 8025003: Base64 should be less strict with padding

2013-10-25 Thread Bill Shannon
Xueming Shen wrote on 10/25/13 15:19: > On 10/25/13 2:19 PM, Bill Shannon wrote: >> If I understand this correctly, this proposes to remove the "lenient" >> option we've been discussing and just make it always lenient. Is that >> correct? > > Yes. Only for the mime type though. That's fine. >>

Re: RFR 8025003: Base64 should be less strict with padding

2013-10-25 Thread Xueming Shen
On 10/25/13 2:19 PM, Bill Shannon wrote: If I understand this correctly, this proposes to remove the "lenient" option we've been discussing and just make it always lenient. Is that correct? Yes. Only for the mime type though. Unfortunately, from what you say below, it's still not lenient en

hg: jdk8/tl/jdk: 5063500: Formatter spec says "char" is not an integral type; ...

2013-10-25 Thread stuart . marks
Changeset: 8ea272253285 Author:smarks Date: 2013-10-25 14:53 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/8ea272253285 5063500: Formatter spec says "char" is not an integral type 7126305: Wrong Unicode value specified for format conversion character 'd' 8027287: incorrect e

Re: RFR: minor doc fixes for java.util.Formatter

2013-10-25 Thread Stuart Marks
Ha! Some quick and easy reviews for a Friday afternoon! OK, I'll pop this one in. Thanks. s'marks On 10/25/13 2:02 PM, Lance Andersen - Oracle wrote: +1 On Oct 25, 2013, at 4:50 PM, Stuart Marks wrote: Hi all, Please review a few minor javadoc fixes in java.util.Formatter. Links to bugs ar

Re: RFR: minor doc fixes for java.util.Formatter

2013-10-25 Thread Chris Hegarty
Looks fine to me. The example "%1$tm %1$te,%1$tY" is used elsewhere in the class description, but I think your change is probably best ( rather than trying to make them consistent ). -Chris. On 10/25/2013 09:50 PM, Stuart Marks wrote: Hi all, Please review a few minor javadoc fixes in java

Re: RFR 8025003: Base64 should be less strict with padding

2013-10-25 Thread Bill Shannon
If I understand this correctly, this proposes to remove the "lenient" option we've been discussing and just make it always lenient. Is that correct? Unfortunately, from what you say below, it's still not lenient enough. I'd really like a version that never, ever, for any reason, throws an excepti

Re: RFR: minor doc fixes for java.util.Formatter

2013-10-25 Thread Lance Andersen - Oracle
+1 On Oct 25, 2013, at 4:50 PM, Stuart Marks wrote: > Hi all, > > Please review a few minor javadoc fixes in java.util.Formatter. Links to bugs > are: > > https://bugs.openjdk.java.net/browse/JDK-5063500 > https://bugs.openjdk.java.net/browse/JDK-7126305 > https://bugs.openjdk.java.net/browse/J

Re: RFR: minor doc fixes for java.util.Formatter

2013-10-25 Thread Joe Darcy
Looks good! -Joe On 10/25/2013 01:50 PM, Stuart Marks wrote: Hi all, Please review a few minor javadoc fixes in java.util.Formatter. Links to bugs are: https://bugs.openjdk.java.net/browse/JDK-5063500 https://bugs.openjdk.java.net/browse/JDK-7126305 https://bugs.openjdk.java.net/browse/JDK-

Re: RFR: minor doc fixes for java.util.Formatter

2013-10-25 Thread roger riggs
Three for the price of one. Looks fine. (Not a Reviewer) Roger On 10/25/2013 4:50 PM, Stuart Marks wrote: Hi all, Please review a few minor javadoc fixes in java.util.Formatter. Links to bugs are: https://bugs.openjdk.java.net/browse/JDK-5063500 https://bugs.openjdk.java.net/browse/JDK-71

RFR: minor doc fixes for java.util.Formatter

2013-10-25 Thread Stuart Marks
Hi all, Please review a few minor javadoc fixes in java.util.Formatter. Links to bugs are: https://bugs.openjdk.java.net/browse/JDK-5063500 https://bugs.openjdk.java.net/browse/JDK-7126305 https://bugs.openjdk.java.net/browse/JDK-8027287 The fixes are all one-liners so I've just appended the p

Re: RFR [8024521] (process) Async close issues with Process InputStream

2013-10-25 Thread Ivan Gerasimov
Thanks a lot, Martin! I created the Jira issue for your proposal: https://bugs.openjdk.java.net/browse/JDK-8027348. Sincerely yours, Ivan On 25.10.2013 20:06, Martin Buchholz wrote: I propose the test for this be in test/java/lang/ProcessBuilder/ instead of test/java/lang/Runtime/exec and

Re: JDK 8 (initial) RFR for JDK-8005294 : Consider default methods for additions to AnnotatedElement

2013-10-25 Thread Joe Darcy
Hi Peter, On 10/25/2013 05:28 AM, Peter Levart wrote: On 10/25/2013 12:29 PM, Peter Levart wrote: Hi Joe, So, the order must be respected, right. There's a bug. I think you wanted to call: ((Class) this).getSuperclass() Instead of: thisClass.getSuperclass() ...which would always return O

Re: JDK 8 (initial) RFR for JDK-8005294 : Consider default methods for additions to AnnotatedElement

2013-10-25 Thread Joe Darcy
On 10/25/2013 03:29 AM, Peter Levart wrote: Hi Joe, So, the order must be respected, right. There's a bug. I think you wanted to call: ((Class) this).getSuperclass() Instead of: thisClass.getSuperclass() ...which would always return Object.class... Right; thanks catching that. Time to

Re: JDK 8 (initial) RFR for JDK-8005294 : Consider default methods for additions to AnnotatedElement

2013-10-25 Thread Peter Levart
Hi Joe, The code below is more optimal only in AnnotatedElement implementations that don't override getDeclaredAnnotation(Class) with more optimal implementation based on a HashMap lookup. Your implementation avoids calling getDeclaredAnnotations() in common cases (where only directly present

Re: JDK 8 (initial) RFR for JDK-8005294 : Consider default methods for additions to AnnotatedElement

2013-10-25 Thread Peter Levart
Hi Joe, I propose some "premature" optimization for AnnotatedElement.getDeclaredAnnotationsByType(). This implementation calls either getDeclaredAnnotatios() once or getDeclaredAnnotation(Class) once, depending on whether the annotation type is repeatable or not respectively (this check also

Re: JDK 8 (initial) RFR for JDK-8005294 : Consider default methods for additions to AnnotatedElement

2013-10-25 Thread Peter Levart
On 10/25/2013 12:29 PM, Peter Levart wrote: Hi Joe, So, the order must be respected, right. There's a bug. I think you wanted to call: ((Class) this).getSuperclass() Instead of: thisClass.getSuperclass() ...which would always return Object.class... Well, this is not the only change need

hg: jdk8/tl/jdk: 8004926: sun/management/jmxremote/bootstrap/CustomLauncherTest.sh oftenly times out

2013-10-25 Thread jaroslav . bachorik
Changeset: 1153022c0a45 Author:jbachorik Date: 2013-10-25 13:01 +0200 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1153022c0a45 8004926: sun/management/jmxremote/bootstrap/CustomLauncherTest.sh oftenly times out Summary: Improve reliability by converting the test to Java Reviewe

Re: JDK 8 (initial) RFR for JDK-8005294 : Consider default methods for additions to AnnotatedElement

2013-10-25 Thread Peter Levart
Hi Joe, So, the order must be respected, right. There's a bug. I think you wanted to call: ((Class) this).getSuperclass() Instead of: thisClass.getSuperclass() ...which would always return Object.class... Regards, Peter On Oct 25, 2013 10:40 AM, "Joe Darcy" wrote: > Hi Joel and Peter, > >

hg: jdk8/tl/jdk: 7079145: Remove java/net/ipv6tests/UdpTest.java from the ProblemList.txt

2013-10-25 Thread chris . hegarty
Changeset: d126301ad372 Author:ewang Date: 2013-10-25 11:01 +0100 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d126301ad372 7079145: Remove java/net/ipv6tests/UdpTest.java from the ProblemList.txt Reviewed-by: alanb, chegar ! test/ProblemList.txt

Re: JDK 8 (initial) RFR for JDK-8005294 : Consider default methods for additions to AnnotatedElement

2013-10-25 Thread Joe Darcy
Hi Joel and Peter, On 10/24/2013 07:10 AM, Peter Levart wrote: Hi Joe, I see two problems with the implementation in *AnnotatedElementSupport*. The first is the treatment of declared-only annotations where the code returns either directly present or in-directly present repeatable annotations