JDK 16 RFR of JDK-5017980: Allow signed positive integer to be parsed instead of a NumerFormatException

2020-08-05 Thread Joe Darcy
Hello, Please review the patch below and CSR for     JDK-8249273: Documentation of BigInteger(String) constructor does not mention leading plus     CSR: https://bugs.openjdk.java.net/browse/JDK-8251235 The fix for JDK-5017980 way back in JDK 7 omitted the spec update to one of the two BigInt

RE: RFR[M]: Adding MD5 Intrinsic on x86-64

2020-08-05 Thread Ludovic Henry
Pushed with https://hg.openjdk.java.net/jdk/jdk/rev/b8231f177eaf Thank you to all involved 😊

Re: RFR: JDK-8251184: File association without description causes exception

2020-08-05 Thread alexander . matveev
Hi Andy, Looks good. Thanks, Alexander On 8/5/20 1:17 PM, Andy Herrick wrote: Please review this jpackage fix at [1] to issue [2] [1] - http://cr.openjdk.java.net/~herrick/8251184/ [2] - https://bugs.openjdk.java.net/browse/JDK-8251184 /Andy

Re: RFR [16/java.xml] 8246816: XMLGregorianCalendar.hashCode() produces far too many identical hashes

2020-08-05 Thread naoto . sato
Hi Joe, For the consistency with equals(), just wondering if the sub-second element should be obtained with getFractionalSecond() instead of getMillisecond(), as the equals() subsequently calls it in internalCompare() method. Also should it call getEonAndYear() appropriately for the year? N

RFR [16/java.xml] 8246816: XMLGregorianCalendar.hashCode() produces far too many identical hashes

2020-08-05 Thread Joe Wang
Hello, Please review a fix for the hashCode generation. JBS: https://bugs.openjdk.java.net/browse/JDK-8246816 webrev: http://cr.openjdk.java.net/~joehw/jdk16/8246816/webrev/ Thanks, Joe

Re: JDK 16 RFR of JDK-8250660: Clarify that WildcardType and AnnotatedWildcardType bounds methods return one

2020-08-05 Thread David Holmes
On 6/08/2020 7:37 am, Joe Darcy wrote: Hello, Addressing some feedback from off-list discussions with Mandy, I propose changing the API notes to:     @apiNote While to date a wildcard may have at most one upper[lower] bound, callers of this method should be written to accommodate multiple

Re: JDK 16 RFR of JDK-8250660: Clarify that WildcardType and AnnotatedWildcardType bounds methods return one

2020-08-05 Thread Mandy Chung
This looks good.  This will prepare for the future when Java supports multiple bounds. Mandy On 8/5/20 2:37 PM, Joe Darcy wrote: Hello, Addressing some feedback from off-list discussions with Mandy, I propose changing the API notes to:     @apiNote While to date a wildcard may have at most

Re: JDK 16 RFR of JDK-8250660: Clarify that WildcardType and AnnotatedWildcardType bounds methods return one

2020-08-05 Thread Joe Darcy
Hello, Addressing some feedback from off-list discussions with Mandy, I propose changing the API notes to:     @apiNote While to date a wildcard may have at most one upper[lower] bound, callers of this method should be written to accommodate multiple bounds. Thanks, -Joe On 8/3/2020 9:24

RFR: JDK-8251184: File association without description causes exception

2020-08-05 Thread Andy Herrick
Please review this jpackage fix at [1] to issue [2] [1] - http://cr.openjdk.java.net/~herrick/8251184/ [2] - https://bugs.openjdk.java.net/browse/JDK-8251184 /Andy

8181919: Refactor test/java/io/File/GetXSpace.sh to java test

2020-08-05 Thread Brian Burkhalter
To fix [1], please consider the patch [2]. This follows on from the proposed change [3] which in turn follows from [4]. Thanks, Brian [1] https://bugs.openjdk.java.net/browse/JDK-8181919 [2] http://cr.openjdk.java.net/~bpb/8181919/webrev.00/ [3] https://mail.openjdk.java.net/pipermail/core-lib

Re: RFR JDK-8250929: Missing "classpath exception" in LambdaProxyClassArchive.java

2020-08-05 Thread sundararajan . athijegannathan
Looks good -Sundar On 05/08/20 10:56 pm, Mandy Chung wrote: Trivial update on license header. diff --git a/src/java.base/share/classes/java/lang/invoke/LambdaProxyClassArchive.java b/src/java.base/share/classes/java/lang/invoke/LambdaProxyClassArchive.java --- a/src/java.base/share/classe

RFR JDK-8250929: Missing "classpath exception" in LambdaProxyClassArchive.java

2020-08-05 Thread Mandy Chung
Trivial update on license header. diff --git a/src/java.base/share/classes/java/lang/invoke/LambdaProxyClassArchive.java b/src/java.base/share/classes/java/lang/invoke/LambdaProxyClassArchive.java --- a/src/java.base/share/classes/java/lang/invoke/LambdaProxyClassArchive.java +++ b/src/java.b

Re: RFR: 8245036: DataInputStream.readFully(byte[], int, int) does not throw expected IndexOutOfBoundsExceptions

2020-08-05 Thread Brian Burkhalter
Also, instead of using the boolean “caughtException,” we usually just put, e.g., the throwing of the RuntimeException on the line after where the IIOBE or whatever would be thrown. I don’t think the “finally” block is necessary. Thanks, Brian > On Aug 5, 2020, at 9:20 AM, Brian Burkhalter >

Re: RFR: 8245036: DataInputStream.readFully(byte[], int, int) does not throw expected IndexOutOfBoundsExceptions

2020-08-05 Thread Brian Burkhalter
HI Raffaello, The implementation test looks right. In the test, you might consider using try-with-resources. Thanks, Brian > On Jul 29, 2020, at 10:44 AM, Raffaello Giulietti > wrote: > > +FileInputStream in = new FileInputStream(file); > +DataInputStream dis = new DataInput

Reminder RFR: 8245036: DataInputStream.readFully(byte[], int, int) does not throw expected IndexOutOfBoundsExceptions

2020-08-05 Thread Raffaello Giulietti
Hi, a gentle reminder to review this almost trivial patch. Greetings Raffaello On 2020-07-29 19:44, Raffaello Giulietti wrote: Hi Tagir, here's yesterday's patch with added unit tests. Greetings Raffaello On 2020-07-29 05:26, Tagir Valeev wrote: Hello! Having a unit-test would be ni