Re: RFR: 8281874: Can't unpack msi installers from test/jdk/tools/jpackage/windows/test/jdk/tools/jpackage/windows/WinShortcutPromptTest.java test

2022-02-15 Thread Alexander Matveev
On Tue, 15 Feb 2022 22:56:35 GMT, Alexey Semenyuk wrote: > 8281874: Can't unpack msi installers from > test/jdk/tools/jpackage/windows/test/jdk/tools/jpackage/windows/WinShortcutPromptTest.java > test Marked as reviewed by almatvee (Reviewer). - PR:

Re: RFR: 8281170: Test jdk/tools/jpackage/windows/WinInstallerIconTest always fails on Windows 11

2022-02-15 Thread Alexander Matveev
On Tue, 15 Feb 2022 17:44:24 GMT, Alexey Semenyuk wrote: > Code clean up. Remove obsolete comments, unused imports, and unneeded jtreg > test parameter. > Fix the code to handle the case when installers are not created and there is > nothing to verify in the test. Marked as reviewed by

Withdrawn: JDK-8281766: Update java.lang.reflect.Parameter to implement Member

2022-02-15 Thread Joe Darcy
On Tue, 15 Feb 2022 01:13:43 GMT, Joe Darcy wrote: > Retrofitting of Parameter to implement Member, an interface already > implemented by similar reflective modeling classes. > > Since Parameter is final, there is little compatibility impact from adding a > new method. > > Please also review

Re: RFR: JDK-8281766: Update java.lang.reflect.Parameter to implement Member

2022-02-15 Thread Joe Darcy
On Tue, 15 Feb 2022 22:32:29 GMT, David Holmes wrote: > Technically a constructor is not a Member either, but the reflection API can > get away with lumping constructors in with methods. > > The JLS definition of Member comes from 8.1.6 and 8.2 - the key definition > being in 8.1.6: > > "A

Re: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range [v2]

2022-02-15 Thread Joe Wang
On Tue, 15 Feb 2022 22:31:28 GMT, Naoto Sato wrote: >> src/java.base/share/classes/java/text/CompactNumberFormat.java line 595: >> >>> 593: divisor = (Long) divisors.get(++compactDataIndex); >>> 594: iPart = getIntegerPart(number, divisor); >>> 595: }

Re: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range [v2]

2022-02-15 Thread Joe Wang
On Tue, 15 Feb 2022 22:31:47 GMT, Naoto Sato wrote: >> Fixing an issue in `CompactNumberFormat` which was caused by >> BigDecimal.divide() that incremented the number in the resulting format >> string. Also fixing some typos by taking this opportunity. > > Naoto Sato has updated the pull

Re: RFR: JDK-8281000 ClassLoader::registerAsParallelCapable throws NPE if caller is null [v2]

2022-02-15 Thread Mandy Chung
On Tue, 15 Feb 2022 23:05:30 GMT, Mandy Chung wrote: >> Tim Prinzing has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Changes from feedback. >> >> - Copyright dates fixed >> - IllegalCallerException thrown for no caller frame, and

Re: RFR: JDK-8281000 ClassLoader::registerAsParallelCapable throws NPE if caller is null [v2]

2022-02-15 Thread Mandy Chung
On Tue, 15 Feb 2022 22:17:53 GMT, Tim Prinzing wrote: >> JDK-8281000 ClassLoader::registerAsParallelCapable throws NPE if caller is >> null > > Tim Prinzing has updated the pull request incrementally with one additional > commit since the last revision: > > Changes from feedback. > > -

RFR: 8281874: Can't unpack msi installers from test/jdk/tools/jpackage/windows/test/jdk/tools/jpackage/windows/WinShortcutPromptTest.java test

2022-02-15 Thread Alexey Semenyuk
8281874: Can't unpack msi installers from test/jdk/tools/jpackage/windows/test/jdk/tools/jpackage/windows/WinShortcutPromptTest.java test - Commit messages: - 8281874: Can't unpack msi installers from

Re: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range [v2]

2022-02-15 Thread Naoto Sato
On Tue, 15 Feb 2022 21:59:42 GMT, Joe Wang wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Addressing review comments > > src/java.base/share/classes/java/text/CompactNumberFormat.java line 595: > >> 593:

Re: RFR: JDK-8281766: Update java.lang.reflect.Parameter to implement Member

2022-02-15 Thread David Holmes
On Tue, 15 Feb 2022 01:13:43 GMT, Joe Darcy wrote: > Retrofitting of Parameter to implement Member, an interface already > implemented by similar reflective modeling classes. > > Since Parameter is final, there is little compatibility impact from adding a > new method. > > Please also review

Re: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range [v2]

2022-02-15 Thread Naoto Sato
> Fixing an issue in `CompactNumberFormat` which was caused by > BigDecimal.divide() that incremented the number in the resulting format > string. Also fixing some typos by taking this opportunity. Naoto Sato has updated the pull request incrementally with one additional commit since the last

RFR: JDK-8281671: Class.getCanonicalName should explicitly over array classes

2022-02-15 Thread Joe Darcy
Add explicit discussion of array types to Class.getCanonicalName, no change in behavior. I didn't see any existing regression tests for the various "getFooName" methods of Class so I created a new test file for a handful of test cases. Please also review the corresponding CSR:

Re: RFR: JDK-8281766: Update java.lang.reflect.Parameter to implement Member

2022-02-15 Thread Rémi Forax
On Tue, 15 Feb 2022 01:13:43 GMT, Joe Darcy wrote: > Retrofitting of Parameter to implement Member, an interface already > implemented by similar reflective modeling classes. > > Since Parameter is final, there is little compatibility impact from adding a > new method. > > Please also review

Re: RFR: JDK-8281000 ClassLoader::registerAsParallelCapable throws NPE if caller is null [v2]

2022-02-15 Thread Tim Prinzing
> JDK-8281000 ClassLoader::registerAsParallelCapable throws NPE if caller is > null Tim Prinzing has updated the pull request incrementally with one additional commit since the last revision: Changes from feedback. - Copyright dates fixed - IllegalCallerException thrown for no caller

Re: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range

2022-02-15 Thread Joe Wang
On Wed, 9 Feb 2022 22:37:45 GMT, Naoto Sato wrote: > Fixing an issue in `CompactNumberFormat` which was caused by > BigDecimal.divide() that incremented the number in the resulting format > string. Also fixing some typos by taking this opportunity. Marked as reviewed by joehw (Reviewer).

Re: RFR: 8281317: CompactNumberFormat displays 4-digit values when rounding to a new range

2022-02-15 Thread Joe Wang
On Wed, 9 Feb 2022 22:37:45 GMT, Naoto Sato wrote: > Fixing an issue in `CompactNumberFormat` which was caused by > BigDecimal.divide() that incremented the number in the resulting format > string. Also fixing some typos by taking this opportunity.

Re: RFR: JDK-8266670: Better modeling of access flags in core reflection [v4]

2022-02-15 Thread Joe Darcy
On Tue, 15 Feb 2022 09:04:02 GMT, ExE Boss wrote: >> src/java.base/share/classes/java/lang/reflect/AccessFlag.java line 55: >> >>> 53: */ >>> 54: @SuppressWarnings("doclint:reference") // cross-module link >>> 55: public enum AccessFlag { >> >> I think there is missing SUPER ACC_SUPER 0x0020

Re: RFR: JDK-8266670: Better modeling of access flags in core reflection [v4]

2022-02-15 Thread Joe Darcy
On Tue, 15 Feb 2022 07:17:12 GMT, Adam Sotona wrote: > I would also recommend to sort access flags by the mask value. Sorted flags > will match the specification and it will also make more deterministic all > operations crawling through all the flags. This AccessFlag enum is very > useful

Re: RFR: JDK-8266670: Better modeling of access flags in core reflection [v5]

2022-02-15 Thread Joe Darcy
> This is an early review of changes to better model JVM access flags, that is > "modifiers" like public, protected, etc. but explicitly at a VM level. > > Language level modifiers and JVM level access flags are closely related, but > distinct. There are concepts that overlap in the two domains

Re: RFR: 8281335: Allow a library already loaded via System::loadLibrary to be loaded as a raw library [v3]

2022-02-15 Thread Mandy Chung
On Tue, 15 Feb 2022 19:59:11 GMT, Mandy Chung wrote: >> src/java.base/share/classes/jdk/internal/loader/NativeLibraries.java line >> 427: >> >>> 425: new ConcurrentHashMap<>(); >>> 426: >>> 427: static void acquireNativeLibraryLock(String libraryName) { >> >> Note sure about

Re: RFR: 8281335: Allow a library already loaded via System::loadLibrary to be loaded as a raw library [v3]

2022-02-15 Thread Mandy Chung
On Tue, 15 Feb 2022 09:48:21 GMT, Maurizio Cimadamore wrote: >> Mandy Chung has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove the coupling of RawNativeLibraries with JNI library loading > >

Re: RFR: 8281335: Allow a library already loaded via System::loadLibrary to be loaded as a raw library [v4]

2022-02-15 Thread Mandy Chung
> This patch removes the restriction in the raw library loading mechanism that > does not allow mix-n-match of loading a library as a JNI library and as a raw > library. > > The raw library loading mechanism is designed for panama to load native > library essentially equivalent to

Integrated: 8278173: [vectorapi] Add x64 intrinsics for unsigned (zero extended) casts

2022-02-15 Thread Quan Anh Mai
On Sat, 5 Feb 2022 15:34:08 GMT, Quan Anh Mai wrote: > Hi, > > This patch implements the unsigned upcast intrinsics in x86, which are used > in vector lane-wise reinterpreting operations. > > Thank you very much. This pull request has now been integrated. Changeset: 0af356bb Author:Quan

Re: RFR: JDK-8281766: Update java.lang.reflect.Parameter to implement Member

2022-02-15 Thread Mandy Chung
On Tue, 15 Feb 2022 01:13:43 GMT, Joe Darcy wrote: > Retrofitting of Parameter to implement Member, an interface already > implemented by similar reflective modeling classes. > > Since Parameter is final, there is little compatibility impact from adding a > new method. > > Please also review

Re: RFR: 8281631: HashMap copy constructor and putAll can over-allocate table [v9]

2022-02-15 Thread XenoAmess
> 8281631: HashMap copy constructor and putAll can over-allocate table XenoAmess has updated the pull request incrementally with one additional commit since the last revision: 9072610: HashMap copy constructor and putAll can over-allocate table - Changes: - all:

Re: RFR: JDK-8281003 - MethodHandles::lookup throws NPE if caller is null [v4]

2022-02-15 Thread Mandy Chung
On Tue, 15 Feb 2022 00:10:44 GMT, Tim Prinzing wrote: >> JDK-8281003 - MethodHandles::lookup throws NPE if caller is null > > Tim Prinzing has updated the pull request incrementally with one additional > commit since the last revision: > > remove excess description Looks good.

Re: [External] : Sequenced Collections

2022-02-15 Thread Brian Goetz
It's a time-honored tradition in naming bikesheds to pick and choose the precedents you want to be "consistent" with, and I think that's what's going on here with your preference for "Ordered" over "Sequenced".  But in an ecosystem as large as Java, you can always find conflicting precedents

Integrated: 8280825: Modules that "provide" ToolProvider should document the name that can be used

2022-02-15 Thread Christian Stein
On Wed, 9 Feb 2022 16:37:00 GMT, Christian Stein wrote: > A number of modules declare that the "provide" ToolProvider. > > These modules now specify the "name" of the argument used by > `ToolProvider.findFirst` to access an instance of the tool provider within > the description part of a

RFR: 8281170: Test jdk/tools/jpackage/windows/WinInstallerIconTest always fails on Windows 11

2022-02-15 Thread Alexey Semenyuk
Code clean up. Remove obsolete comments, unused imports, and unneeded jtreg test parameter. Fix the code to handle the case when installers are not created and there is nothing to verify in the test. - Commit messages: - 8281170: Test

Re: RFR: 8281631: HashMap copy constructor and putAll can over-allocate table [v8]

2022-02-15 Thread XenoAmess
On Tue, 15 Feb 2022 16:58:49 GMT, XenoAmess wrote: >> 8281631: HashMap copy constructor and putAll can over-allocate table > > XenoAmess has updated the pull request incrementally with one additional > commit since the last revision: > > 9072610: HashMap.putAll can cause redundant space

Re: RFR: 8281631: HashMap copy constructor and putAll can over-allocate table [v8]

2022-02-15 Thread XenoAmess
> 8281631: HashMap copy constructor and putAll can over-allocate table XenoAmess has updated the pull request incrementally with one additional commit since the last revision: 9072610: HashMap.putAll can cause redundant space waste - Changes: - all:

Re: RFR: 8281631: HashMap.putAll can cause redundant space waste [v7]

2022-02-15 Thread XenoAmess
> 8281631: HashMap.putAll can cause redundant space waste XenoAmess has updated the pull request incrementally with one additional commit since the last revision: 9072610: HashMap.putAll can cause redundant space waste - Changes: - all:

Re: RFR: 8279995: jpackage --add-launcher option should allow overriding description [v3]

2022-02-15 Thread Alexey Semenyuk
On Mon, 14 Feb 2022 23:56:43 GMT, Alexander Matveev wrote: >> Added ability to override description for additional launchers via >> "description" property. > > Alexander Matveev has updated the pull request incrementally with one > additional commit since the last revision: > > 8279995:

Re: RFR: 8279995: jpackage --add-launcher option should allow overriding description [v3]

2022-02-15 Thread Alexey Semenyuk
On Mon, 14 Feb 2022 23:56:43 GMT, Alexander Matveev wrote: >> Added ability to override description for additional launchers via >> "description" property. > > Alexander Matveev has updated the pull request incrementally with one > additional commit since the last revision: > > 8279995:

Re: RFR: 8280825: Modules that "provide" ToolProvider should document the name that can be used [v3]

2022-02-15 Thread Alan Bateman
On Tue, 15 Feb 2022 06:40:57 GMT, Christian Stein wrote: >> A number of modules declare that the "provide" ToolProvider. >> >> These modules now specify the "name" of the argument used by >> `ToolProvider.findFirst` to access an instance of the tool provider within >> the description part of

Re: RFR: 8281146: Replace StringCoding.hasNegatives with countPositives [v2]

2022-02-15 Thread Claes Redestad
On Tue, 15 Feb 2022 11:20:55 GMT, Lutz Schmidt wrote: > Well, with the existing implementations for ppc and s390, I do not see a > complexity advantage with a relaxed spec. The code would have to be there > anyway. Same for x86, but we could avoid going into and checking the tail on a

Re: RFR: 8281146: Replace StringCoding.hasNegatives with countPositives [v2]

2022-02-15 Thread Lutz Schmidt
On Fri, 11 Feb 2022 12:11:54 GMT, Claes Redestad wrote: >> I'm requesting comments and, hopefully, some help with this patch to replace >> `StringCoding.hasNegatives` with `countPositives`. The new method does a >> very similar pass, but alters the intrinsic to return the number of leading >>

Re: RFR: 8280825: Modules that "provide" ToolProvider should document the name that can be used [v3]

2022-02-15 Thread Lance Andersen
On Tue, 15 Feb 2022 06:40:57 GMT, Christian Stein wrote: >> A number of modules declare that the "provide" ToolProvider. >> >> These modules now specify the "name" of the argument used by >> `ToolProvider.findFirst` to access an instance of the tool provider within >> the description part of

Re: RFR: 8281146: Replace StringCoding.hasNegatives with countPositives [v2]

2022-02-15 Thread Claes Redestad
On Tue, 15 Feb 2022 08:25:29 GMT, Lutz Schmidt wrote: > Hi Claes, I'm working on the s390 implementation. Awesome, thanks! > > Just for clarification: the return value must be the index of the first > negative byte? Yes, or the length if there are no such bytes. I've considered (and am

Re: RFR: 8281335: Allow a library already loaded via System::loadLibrary to be loaded as a raw library [v3]

2022-02-15 Thread Maurizio Cimadamore
On Tue, 15 Feb 2022 02:17:00 GMT, Mandy Chung wrote: >> This patch removes the restriction in the raw library loading mechanism that >> does not allow mix-n-match of loading a library as a JNI library and as a >> raw library. >> >> The raw library loading mechanism is designed for panama to

Re: RFR: JDK-8281766: Update java.lang.reflect.Parameter to implement Member

2022-02-15 Thread ExE Boss
On Tue, 15 Feb 2022 01:13:43 GMT, Joe Darcy wrote: > Retrofitting of Parameter to implement Member, an interface already > implemented by similar reflective modeling classes. > > Since Parameter is final, there is little compatibility impact from adding a > new method. > > Please also review

Re: RFR: JDK-8266670: Better modeling of access flags in core reflection [v4]

2022-02-15 Thread ExE Boss
On Mon, 14 Feb 2022 22:47:53 GMT, Joe Darcy wrote: >> This is an early review of changes to better model JVM access flags, that is >> "modifiers" like public, protected, etc. but explicitly at a VM level. >> >> Language level modifiers and JVM level access flags are closely related, but >>

Re: RFR: JDK-8266670: Better modeling of access flags in core reflection [v4]

2022-02-15 Thread ExE Boss
On Tue, 15 Feb 2022 06:56:51 GMT, Adam Sotona wrote: >> Joe Darcy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Respond to more review feedback. > > src/java.base/share/classes/java/lang/reflect/AccessFlag.java line 55: > >> 53: */

Re: RFR: 8281146: Replace StringCoding.hasNegatives with countPositives [v2]

2022-02-15 Thread Lutz Schmidt
On Fri, 11 Feb 2022 12:11:54 GMT, Claes Redestad wrote: >> I'm requesting comments and, hopefully, some help with this patch to replace >> `StringCoding.hasNegatives` with `countPositives`. The new method does a >> very similar pass, but alters the intrinsic to return the number of leading >>