Re: [PATCH] 8247402: Rewrite the implementation requirements for Map::compute()

2020-06-11 Thread 林自均
Hi Martin, Thanks for the review! However, the corner case you mentioned seems to be related to the design choice of Map::compute(), and it's out of the scope of this change. What do you think? Best, John Lin Martin Buchholz 於 2020年6月12日 週五 上午11:42寫道: > > 林自均, pleased to meet you! > > This

Re: [PATCH] 8247402: Rewrite the implementation requirements for Map::compute()

2020-06-11 Thread Martin Buchholz
林自均, pleased to meet you! This rewrite seems clear and clean. Would it be even clearer if we did if (newValue != null) { map.put(key, newValue); } else { map.remove(key); } Hmmm, what about the corner case where the map permits null values and the old value is null? On Thu, Jun 11, 2020

[PATCH] 8247402: Rewrite the implementation requirements for Map::compute()

2020-06-11 Thread 林自均
Hi all, This is my first time contribution. Please let me know if I did something wrong. Thanks. Regards I'm working on this bug: https://bugs.openjdk.java.net/browse/JDK-8247402 The original problem is that the implementation requirements for Map::compute() lacks of return statements for some

Re: Thread leak by LdapLoginModule

2020-06-11 Thread Mkrtchyan, Tigran
Hi, found it: https://bugs.openjdk.java.net/browse/JDK-8237876 Thanks, Tigran. - Original Message - > From: "Daniel Fuchs" > To: "Sean Mullan" , "Tigran Mkrtchyan" > , "security-dev" > > Cc: "core-libs-dev" > Sent: Wednesday, June 10, 2020 4:29:36 PM > Subject: Re: Thread leak by

Re: RFR: JDK-8247418: Only validate the certificates trust if using the default key user name.

2020-06-11 Thread alexander . matveev
Hi Andy, Looks good. Thanks, Alexander On 6/11/20 1:22 PM, Andy Herrick wrote: Please review the small jpackage test fix at [1] to issue [2]. [1] http://cr.openjdk.java.net/~herrick/8247418/webrev.01/ [2] https://bugs.openjdk.java.net/browse/JDK-8247418 /Andy

Re: RFR: JDK-8247422: --runtime-image on Mac should work for runtime root

2020-06-11 Thread alexander . matveev
Looks good. Thanks, Alexander On 6/11/20 1:19 PM, Andy Herrick wrote: looks good. /Andy On 6/11/2020 1:23 PM, Alexey Semenyuk wrote: Please review fix [2] for jpackage bug [1]. Restore handling not only Java runtime home but also Java runtime root directory in `--runtime-image` option on

Re: RFR: JDK-8247422: --runtime-image on Mac should work for runtime root

2020-06-11 Thread Andy Herrick
looks good. /Andy On 6/11/2020 1:23 PM, Alexey Semenyuk wrote: Please review fix [2] for jpackage bug [1]. Restore handling not only Java runtime home but also Java runtime root directory in `--runtime-image` option on Mac. The patch also fixes [3] issue as a side effect of moving

Re: RFR: JDK-8247418: Only validate the certificates trust if using the default key user name.

2020-06-11 Thread Alexey Semenyuk
Looks good. - Alexey On 6/11/2020 4:22 PM, Andy Herrick wrote: Please review the small jpackage test fix at [1] to issue [2]. [1] http://cr.openjdk.java.net/~herrick/8247418/webrev.01/ [2] https://bugs.openjdk.java.net/browse/JDK-8247418 /Andy

RFR: JDK-8247418: Only validate the certificates trust if using the default key user name.

2020-06-11 Thread Andy Herrick
Please review the small jpackage test fix at [1] to issue [2]. [1] http://cr.openjdk.java.net/~herrick/8247418/webrev.01/ [2] https://bugs.openjdk.java.net/browse/JDK-8247418 /Andy

Re: [PATCH] 8246633: Improve the performance of ObjectInputStream.resolveClass(ObjectStreamClass)

2020-06-11 Thread Daniel Fuchs
Hi Peter, I am surprised by the java/net/httpclient failures: these tests have been quite stable for me. Is your repository up to date? Or are these maybe failing in timeout, in which case you might need to increase the timeout factor (-timeout) or lower the concurrency (-conc). Or maybe you

Re: [PATCH] 8246633: Improve the performance of ObjectInputStream.resolveClass(ObjectStreamClass)

2020-06-11 Thread Peter Kessler OS
Hi Roger, Thanks for your comments. I am not knowingly changing the required behavior. All I am proposing is guarding the thread stack walk if it will be a waste of effort. If an application or framework has its own ClassLoaders, then the guard will fail and the thread stack will be walked. The

Re: [PATCH] 8246633: Improve the performance of ObjectInputStream.resolveClass(ObjectStreamClass)

2020-06-11 Thread Peter Kessler OS
Daniel, Thanks for the suggestion to run more tests. I'm not sure what the criteria for "success" is here. I have run $ jtreg-5.0-b01/bin/jtreg \ -verbose:summary -a -ea -esa -agentvm -conc:8 -ignore:quiet -timeout:2 \ -exclude:./test/jdk/ProblemList.txt \ -jdk:${jdk} \

Re: RFR of JDK-8245620: Improve Annotation.annotationType() documentation

2020-06-11 Thread Pavel Rappo
Looks good. > On 11 Jun 2020, at 18:11, Joe Darcy wrote: > > Hi Pavel, > > On 6/11/2020 2:54 AM, Pavel Rappo wrote: >> Joe, >> >> There is a typo: >> >> *appropriate overloading of {@link java.util.Arrays#equals >> Arrays.hashCode}. >>

RFR: JDK-8247422: --runtime-image on Mac should work for runtime root

2020-06-11 Thread Alexey Semenyuk
Please review fix [2] for jpackage bug [1]. Restore handling not only Java runtime home but also Java runtime root directory in `--runtime-image` option on Mac. The patch also fixes [3] issue as a side effect of moving functionality of BasicTest.testJLinkRuntime() function into the new

Re: RFR of JDK-8245620: Improve Annotation.annotationType() documentation

2020-06-11 Thread Joe Darcy
Hi Pavel, On 6/11/2020 2:54 AM, Pavel Rappo wrote: Joe, There is a typo: *appropriate overloading of {@link java.util.Arrays#equals Arrays.hashCode}. ^ ~~~^ Since we are in this area, is it possible to rephrase (or at least

Re: RFR: JDK-8246098: API for Class::permittedSubclasses should clarify if returned elements are ordered or not

2020-06-11 Thread Vicente Romero
thanks for the review, Vicente On 6/11/20 4:47 AM, Chris Hegarty wrote: On 10 Jun 2020, at 23:23, Vicente Romero wrote: Please review this small change to the API for java.lang.Class::permittedSubclasses which clarifies that no particular order of the returned elements should be assumed

Re: RFR of JDK-8245620: Improve Annotation.annotationType() documentation

2020-06-11 Thread Pavel Rappo
Joe, There is a typo: *appropriate overloading of {@link java.util.Arrays#equals Arrays.hashCode}. ^ ~~~^ Since we are in this area, is it possible to rephrase (or at least re-punctuate) the doc comment for

Re: RFR: JDK-8246098: API for Class::permittedSubclasses should clarify if returned elements are ordered or not

2020-06-11 Thread Chris Hegarty
> On 10 Jun 2020, at 23:23, Vicente Romero wrote: > > Please review this small change to the API for > java.lang.Class::permittedSubclasses which clarifies that no particular order > of the returned elements should be assumed by clients. The related bug is at > [1], the webrev at [2] and

Re: RFR of JDK-8245620: Improve Annotation.annotationType() documentation

2020-06-11 Thread Alan Bateman
On 11/06/2020 06:26, Joe Darcy wrote: Hello, Please review a number of small updates to the javadoc of java.lang.annotation.Annotation to address     JDK-8245620: Improve Annotation.annotationType() documentation The use of  Annotation.annotationType() vs calling getClass on an annotation