Re: RFR: 8294693: Add Collections.shuffle overload that accepts RandomGenerator interface [v3]

2023-01-14 Thread Tagir F . Valeev
On Wed, 4 Jan 2023 21:32:17 GMT, Stuart Marks wrote: >> A gentle ping: please review the change and the CSR. Thanks. > > @amaembo a couple comments on the test. > > The test should probably have `@key randomness` added to it. > > On 2022-10-28, @bplb wrote: >> jdk.test.lib.RandomFactory can be

Re: RFR: 8294693: Add Collections.shuffle overload that accepts RandomGenerator interface [v4]

2023-01-14 Thread Tagir F . Valeev
> Java 17 added RandomGenerator interface. However, existing method > Collections.shuffle accepts old java.util.Random class. While since Java 19, > it's possible to use Random.from(RandomGenerator) wrapper, it would be more > convenient to provide direct overload shuffle(List list, RandomGenera

Re: RFR: 8300169: Build failure with clang-15

2023-01-14 Thread Jie Fu
On Sat, 14 Jan 2023 15:03:42 GMT, Kevin Rushforth wrote: > Normally, such changes in third-party libraries need to be done upstream, and > not locally. @prrace can confirm. Thanks @kevinrushforth for your review. Yes, it had been fixed in the upstream and I just follow it. Please see https://g

Re: RFR: 8299502: Usage of constructors of primitive wrapper classes should be avoided in javax.xml API docs [v2]

2023-01-14 Thread Justin Lu
On Sat, 14 Jan 2023 13:30:05 GMT, altrisi wrote: > I'd say in there it makes more sense given the method is used when you want a > wrapper, and therefore explicitly converting it helps documentation, but here > it's just setting a property, where I don't think it helps anything, just > decreas

Re: RFR: 8300169: Build failure with clang-15

2023-01-14 Thread Kevin Rushforth
On Sat, 14 Jan 2023 14:28:32 GMT, Jie Fu wrote: > Hi all, > > Please review the fix for the build failure with clang-15. > > 1. -Wbitwise-instead-of-logical > >1) src/hotspot/share/oops/generateOopMap.cpp <--- fixed the > warning >2) src/hotspot/share/runtime/notificationThre

RFR: 8300169: Build failure with clang-15

2023-01-14 Thread Jie Fu
Hi all, Please review the fix for the build failure with clang-15. 1. -Wbitwise-instead-of-logical 1) src/hotspot/share/oops/generateOopMap.cpp <--- fixed the warning 2) src/hotspot/share/runtime/notificationThread.cpp <--- keep the code and disable warnings 3) src/hotspot/s

Re: RFR: 8299502: Usage of constructors of primitive wrapper classes should be avoided in javax.xml API docs [v2]

2023-01-14 Thread altrisi
On Fri, 6 Jan 2023 21:59:13 GMT, Justin Lu wrote: >> Removed constructors of primitive wrapper classes (deprecated for removal) >> in _javax.xml.stream.XMLOutputFactory_ >> >> Replaced with Boolean static fields: Boolean.TRUE and Boolean.FALSE > > Justin Lu has updated the pull request increme

Re: RFR: 8300140: ZipFile.isSignatureRelated returns true for files in META-INF subdirectories [v2]

2023-01-14 Thread Eirik Bjorsnos
On Fri, 13 Jan 2023 22:36:47 GMT, Weijun Wang wrote: >> Eirik Bjorsnos has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains six additional >> commits

Re: RFR: 8300140: ZipFile.isSignatureRelated returns true for files in META-INF subdirectories [v2]

2023-01-14 Thread Eirik Bjorsnos
> Some call sites of SignatureFileVerifier.isBlockOrSF fails to check that > files reside in META-INF directly, and not in a subdirectory of META-INF. > > The mentioned call sites needs updates to check and ignore such files. > > A new test VerifyUnrelatedSignatureFiles is added which verifies t

Re: RFR: 8300140: ZipFile.isSignatureRelated returns true for files in META-INF subdirectories

2023-01-14 Thread Eirik Bjorsnos
On Fri, 13 Jan 2023 22:36:01 GMT, Weijun Wang wrote: >> Some call sites of SignatureFileVerifier.isBlockOrSF fails to check that >> files reside in META-INF directly, and not in a subdirectory of META-INF. >> >> The mentioned call sites needs updates to check and ignore such files. >> >> A new

Re: RFR: 8300140: ZipFile.isSignatureRelated returns true for files in META-INF subdirectories

2023-01-14 Thread Eirik Bjorsnos
On Fri, 13 Jan 2023 22:31:28 GMT, Weijun Wang wrote: >> Some call sites of SignatureFileVerifier.isBlockOrSF fails to check that >> files reside in META-INF directly, and not in a subdirectory of META-INF. >> >> The mentioned call sites needs updates to check and ignore such files. >> >> A new

Re: RFR: 8293841: RISC-V: Implementation of Foreign Function & Memory API (Preview) [v5]

2023-01-14 Thread Jorn Vernee
On Tue, 10 Jan 2023 15:15:23 GMT, Feilong Jiang wrote: >> Add experimental Foreign Function & Memory API support for RISC-V. >> >> For details of the FFM API RISC-V port please refer to [JBS >> issue](https://bugs.openjdk.org/browse/JDK-8293841) >> >> Testing: >> >> - [x] jdk_foreign with rel

Re: RFR: 8038146: Clarify NavigableMap/TreeMap support for Entry.setValue [v2]

2023-01-14 Thread Alan Bateman
On Sat, 14 Jan 2023 03:56:33 GMT, Stuart Marks wrote: >> Also additional verbiage regarding Map.Entry objects in general and their >> possible connection to an underlying Map. > > Stuart Marks has updated the pull request incrementally with one additional > commit since the last revision: > >

Re: RFR: 8300010: UnsatisfiedLinkError on calling System.console().readPassword() on Windows [v2]

2023-01-14 Thread Alan Bateman
On Fri, 13 Jan 2023 19:18:46 GMT, Naoto Sato wrote: >> Fixing a regression caused by the fix to >> [JDK-8298971](https://bugs.openjdk.org/browse/JDK-8298971). The previous fix >> lacked the native part change on Windows. > > Naoto Sato has updated the pull request incrementally with one additio