Re: Sponsor Request: 8241100: Make Boolean, Character, Byte, and Short implement Constable

2020-03-20 Thread John Rose
On Mar 20, 2020, at 10:49 AM, Jorn Vernee wrote: > > W.r.t. the source type being needed, I see the following 4 major cases: > > 1. src=Prim & dst=Prim -> cast convert. For boolean the least-significant-bit > is used to convert it to/from an integer type. > 2. src=Prim & dst=Ref -> box the

Re: RFR [15] 8241014: Miscellaneous typos in documentation comments

2020-03-20 Thread Pavel Rappo
Thanks Ivan, I merged your changes with mine and pushed the resulting changeset. > On 20 Mar 2020, at 20:11, Ivan Gerasimov wrote: > > Thank you Paul! > > grep found a few more occurrences of 'equals to' across java.base, so I > fixed them as well. > > Here's the updated webrev: > >

Re: RFR [15] 8241014: Miscellaneous typos in documentation comments

2020-03-20 Thread Ivan Gerasimov
Thank you Paul! grep found a few more occurrences of  'equals to'  across java.base, so I fixed them as well. Here's the updated webrev: http://cr.openjdk.java.net/~igerasim/XXX-typos/01/webrev/ Pavel, I checked your portion of correction, everything looks good to me! One minor nit: 

Re: Review Request JDK-8240975: Extend NativeLibraries to support explicit unloading

2020-03-20 Thread Alan Bateman
On 20/03/2020 16:17, Mandy Chung wrote: : I like these shorter names. Updated webrev.02 in place. Looks good.

Re: Sponsor Request: 8241100: Make Boolean, Character, Byte, and Short implement Constable

2020-03-20 Thread Jorn Vernee
W.r.t. the source type being needed, I see the following 4 major cases: 1. src=Prim & dst=Prim -> cast convert. For boolean the least-significant-bit is used to convert it to/from an integer type. 2. src=Prim & dst=Ref   -> box the source value and potentially cast 3. src=Ref   & dst=Prim ->

Re: RFR [15] 8241014: Miscellaneous typos in documentation comments

2020-03-20 Thread Paul Sandoz
+1 Paul. > On Mar 13, 2020, at 8:42 AM, Pavel Rappo wrote: > > Hello, > > Please review the change for https://bugs.openjdk.java.net/browse/JDK-8241014: > > http://cr.openjdk.java.net/~prappo/8241014/webrev.00/ > > This is a documentation cleanup. There are no code changes involved, > and

Re: RFR [15] 8241014: Miscellaneous typos in documentation comments

2020-03-20 Thread Paul Sandoz
--- a/src/java.base/share/classes/java/lang/invoke/MethodType.java +++ b/src/java.base/share/classes/java/lang/invoke/MethodType.java @@ -1379,12 +1379,12 @@ /** * This implementation returns {@code true} if {@code obj} is another - * {@code WeakEntry}

Re: Review Request JDK-8240975: Extend NativeLibraries to support explicit unloading

2020-03-20 Thread Maurizio Cimadamore
Looks good! Thanks! Maurizio On 20/03/2020 16:17, Mandy Chung wrote: On 3/20/20 6:51 AM, Alan Bateman wrote: On 20/03/2020 03:43, Mandy Chung wrote: Alan, Maurizio, New webrev: http://cr.openjdk.java.net/~mchung/jdk15/webrevs/8240975/webrev.02/ newJavaNativeInterfaceLibraries  creates a

[15] RFR: 8241311: Move some charset mapping tests from closed to open

2020-03-20 Thread naoto . sato
Hello, Please review the fix to the following issue: https://bugs.openjdk.java.net/browse/JDK-8241311 The proposed changeset is located at: https://cr.openjdk.java.net/~naoto/8241311/webrev.04/ This is simply to move some test cases that have been in closed repository into open repository.

Re: Review Request JDK-8240975: Extend NativeLibraries to support explicit unloading

2020-03-20 Thread Mandy Chung
On 3/20/20 6:51 AM, Alan Bateman wrote: On 20/03/2020 03:43, Mandy Chung wrote: Alan, Maurizio, New webrev: http://cr.openjdk.java.net/~mchung/jdk15/webrevs/8240975/webrev.02/ newJavaNativeInterfaceLibraries  creates a NativeLIbraries for loading JNI native libraries.   - native

Re: Review Request JDK-8240975: Extend NativeLibraries to support explicit unloading

2020-03-20 Thread Alan Bateman
On 20/03/2020 03:43, Mandy Chung wrote: Alan, Maurizio, New webrev: http://cr.openjdk.java.net/~mchung/jdk15/webrevs/8240975/webrev.02/ newJavaNativeInterfaceLibraries  creates a NativeLIbraries for loading JNI native libraries.   - native libraries are unloaded when the class loader is

Re: RFR: JDK-8241310 Fix warnings in jdk buildtools

2020-03-20 Thread Erik Joelsson
Looks even better. /Erik On 2020-03-20 04:42, Magnus Ihse Bursie wrote: On 2020-03-19 19:12, Remi Forax wrote: Hi Magnus, please try not to use @SuppressWarnings("unchecked") on methods, but on local variable instead to reduce the scope, you can introduce a local variable for that. Aha, I

Re: RFR: JDK-8241310 Fix warnings in jdk buildtools

2020-03-20 Thread Magnus Ihse Bursie
On 2020-03-19 18:54, Erik Joelsson wrote: Looks good to me. Thanks. I love the WrapperGenerator using Vector and Hashtable! Yeah. State of the art. I'm still trying to wrap my head around this piece of beauty:     assert !(currentContainer instanceof Entry);    

Re: RFR: JDK-8241310 Fix warnings in jdk buildtools

2020-03-20 Thread Magnus Ihse Bursie
On 2020-03-19 19:12, Remi Forax wrote: Hi Magnus, please try not to use @SuppressWarnings("unchecked") on methods, but on local variable instead to reduce the scope, you can introduce a local variable for that. Aha, I did not know that possibility existed! (My Java skills is becoming somewhat