Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview) [v2]

2023-11-08 Thread Per Minborg
On Wed, 8 Nov 2023 21:08:03 GMT, Viktor Klang wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > Viktor Klang has updated the pull request incrementally with two additional > commits since the last revision: > > - Addressing review feedback > - Make Gatherer.an

Re: RFR: 8319761: Simplify fields of Array VarHandles

2023-11-08 Thread Per Minborg
On Sun, 24 Sep 2023 13:17:05 GMT, Chen Liang wrote: > 1. Primitive array VHs are now singletons and no longer need to record their > array base and offset in their object themselves. > 2. Moved Unsafe offset calculation to a utility method, like `index` in > VarHandleByteArrayView. Sharing cod

Re: RFR: 8319574: Exec/process tests should be marked as flagless

2023-11-08 Thread David Holmes
On Thu, 9 Nov 2023 06:43:12 GMT, Jaikiran Pai wrote: >> Tests that directly use ProcessBuilder to spawn processes and do not pass >> the standard test command line arguments should be marked as `vm.flagless` >> to indicate to the testing infrastructure that they do not accept them and >> shoul

Re: RFR: JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols

2023-11-08 Thread suchismith1993
On Mon, 30 Oct 2023 10:54:48 GMT, suchismith1993 wrote: > 1. Adding required compiler flags. > 2. Adding required symbols. > > JBS-ISSUE : [JDK-8317799](https://bugs.openjdk.org/browse/JDK-8317799) Problem: There is syslookup file which expects the required symbols to be exported using the co

Re: RFR: JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols

2023-11-08 Thread David Holmes
On Wed, 8 Nov 2023 21:14:41 GMT, Magnus Ihse Bursie wrote: > Also, please don't ever force push once you have published a PR. Now it makes > Martin's comment just dangling in the air. @magicus I think the force-push happened whilst the PR was still in draft (skara bot did not complain), which

Re: RFR: JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols

2023-11-08 Thread David Holmes
On Mon, 30 Oct 2023 10:54:48 GMT, suchismith1993 wrote: > 1. Adding required compiler flags. > 2. Adding required symbols. > > JBS-ISSUE : [JDK-8317799](https://bugs.openjdk.org/browse/JDK-8317799) I agree with Magnus that we need to understand the problem first, and then review the solution.

Re: RFR: 8319574: Exec/process tests should be marked as flagless

2023-11-08 Thread Jaikiran Pai
On Wed, 8 Nov 2023 21:04:49 GMT, Roger Riggs wrote: > Tests that directly use ProcessBuilder to spawn processes and do not pass the > standard test command line arguments should be marked as `vm.flagless` to > indicate to the testing infrastructure that they do not accept them and > should not

Re: New method on java.util.function.Function -- ternary method

2023-11-08 Thread David Alayachew
Oh, I will also add a specialized version of this method to java.util.function.UnaryOperator. That is because UnaryOperator is a subinterface of Function. Function goes T -> R, but UnaryOperator just goes T -> T. We do not want UnaryOperator to have the T -> R static function included due to inheri

Re: New method on java.util.function.Function -- ternary method

2023-11-08 Thread David Alayachew
It has been a month since I sent this proposal. Since no one has told me that this is a terrible idea, I will submit this as an enhancement to JBS, and once the ticket is made, start work on creating a pull request. On Tue, Oct 3, 2023 at 3:13 AM David Alayachew wrote: > Whoops, bad import. > >

Re: RFR: 8319200: Don't use test thread factory in ProcessTools.createLimitedTestJavaProcessBuilder() [v4]

2023-11-08 Thread David Holmes
On Wed, 8 Nov 2023 19:13:25 GMT, Leonid Mesnik wrote: >> Test thread factory is a mode similar to VM flags and should not be used in >> ProcessTools.createLimitedTestJavaProcessBuilder(). Only >> createTestJavaProcessBuilder() should use it like jtreg VM options. >> >> Adding the test thread f

Re: RFR: 8319200: Don't use test thread factory in ProcessTools.createLimitedTestJavaProcessBuilder() [v4]

2023-11-08 Thread David Holmes
On Wed, 8 Nov 2023 19:13:25 GMT, Leonid Mesnik wrote: >> Test thread factory is a mode similar to VM flags and should not be used in >> ProcessTools.createLimitedTestJavaProcessBuilder(). Only >> createTestJavaProcessBuilder() should use it like jtreg VM options. >> >> Adding the test thread f

Re: RFR: 8311906: Improve robustness of String constructors with mutable array inputs [v2]

2023-11-08 Thread Roger Riggs
> Strings, after construction, are immutable but may be constructed from > mutable arrays of bytes, characters, or integers. > The string constructors should guard against the effects of mutating the > arrays during construction that might invalidate internal invariants for the > correct behavio

Re: RFR: 8306116: Update CLDR to Version 44.0

2023-11-08 Thread Joe Wang
On Tue, 31 Oct 2023 21:06:13 GMT, Naoto Sato wrote: > Upgrading CLDR to v44 (https://cldr.unicode.org/index/downloads/cldr-44). > Besides the data upgrade, regression tests are modified to accommodate the > following CLDR fixes: > > CLDR-16534: Suggestion to rename the Islamic Calendar to Hijr

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v11]

2023-11-08 Thread Vladimir Ivanov
On Sat, 21 Oct 2023 12:04:10 GMT, Jorn Vernee wrote: >> Add the ability to pass heap segments to native code. This requires using >> `Linker.Option.critical(true)` as a linker option. It has the same >> limitations as normal critical calls, namely: upcalls into Java are not >> allowed, and the

Re: RFR: 8296250" Update ICU4J to Version 74.1

2023-11-08 Thread Joe Wang
On Wed, 1 Nov 2023 17:40:09 GMT, Naoto Sato wrote: > Updating the ICU4J components to v74.1 (https://icu.unicode.org/download/74). > This change completes the Unicode 15.1 upgrade. The change is merely > replacing binary data files used for the Normalization and BiDi support Marked as reviewed

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v12]

2023-11-08 Thread Vladimir Ivanov
On Tue, 24 Oct 2023 15:09:57 GMT, Jorn Vernee wrote: >> Add the ability to pass heap segments to native code. This requires using >> `Linker.Option.critical(true)` as a linker option. It has the same >> limitations as normal critical calls, namely: upcalls into Java are not >> allowed, and the

Re: RFR: 8308753: Class-File API transition to Preview [v24]

2023-11-08 Thread Chen Liang
On Wed, 8 Nov 2023 15:45:56 GMT, Konrad Windszus wrote: > I know, but for memory consumption reasons everyone should prefer just > passing an InputStream. Is the memory consumption with > `ClassFile.of().parse(Path)` any better (i.e. are you using a > `java.io.RandomAccessFile` or `java.nio.ch

Re: RFR: 8319761: Simplify fields of Array VarHandles

2023-11-08 Thread Magnus Ihse Bursie
On Sun, 24 Sep 2023 13:17:05 GMT, Chen Liang wrote: > 1. Primitive array VHs are now singletons and no longer need to record their > array base and offset in their object themselves. > 2. Moved Unsafe offset calculation to a utility method, like `index` in > VarHandleByteArrayView. @liach You

Re: RFR: 8319761: Simplify fields of Array VarHandles

2023-11-08 Thread ExE Boss
On Sun, 24 Sep 2023 13:17:05 GMT, Chen Liang wrote: > 1. Primitive array VHs are now singletons and no longer need to record their > array base and offset in their object themselves. > 2. Moved Unsafe offset calculation to a utility method, like `index` in > VarHandleByteArrayView. Note that t

RFR: 8319761: Simplify fields of Array VarHandles

2023-11-08 Thread Chen Liang
1. Primitive array VHs are now singletons and no longer need to record their array base and offset in their object themselves. 2. Moved Unsafe offset calculation to a utility method, like `index` in VarHandleByteArrayView. - Commit messages: - Use the base offset and index scale co

Re: RFR: 8319574: Exec/process tests should be marked as flagless

2023-11-08 Thread Naoto Sato
On Wed, 8 Nov 2023 21:04:49 GMT, Roger Riggs wrote: > Tests that directly use ProcessBuilder to spawn processes and do not pass the > standard test command line arguments should be marked as `vm.flagless` to > indicate to the testing infrastructure that they do not accept them and > should not

RFR: 8319753: Duration javadoc has "period" instead of "duration" in several places

2023-11-08 Thread Eamonn McManus
This change simply replaces "period" with "duration", or in one case replaces "period unit" with just "unit". - Commit messages: - 8319753: Duration javadoc has "period" instead of "duration" in several places Changes: https://git.openjdk.org/jdk/pull/16573/files Webrev: https://

Re: RFR: 8319574: Exec/process tests should be marked as flagless

2023-11-08 Thread Brian Burkhalter
On Wed, 8 Nov 2023 21:04:49 GMT, Roger Riggs wrote: > Tests that directly use ProcessBuilder to spawn processes and do not pass the > standard test command line arguments should be marked as `vm.flagless` to > indicate to the testing infrastructure that they do not accept them and > should not

Re: RFR: 8316141: Improve CEN header validation checking

2023-11-08 Thread Eirik Bjorsnos
On Wed, 8 Nov 2023 19:59:34 GMT, Lance Andersen wrote: > Please review this PR which enhances the existing CEN header validation > checking to ensure that the > size of the CEN Header + name length + comment length + extra length do not > exceed 65,535 bytes per the PKWare APP.NOTE 4.4.10, 4.

Re: RFR: JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols

2023-11-08 Thread Magnus Ihse Bursie
On Mon, 30 Oct 2023 10:54:48 GMT, suchismith1993 wrote: > 1. Adding required compiler flags. > 2. Adding required symbols. > > JBS-ISSUE : [JDK-8317799](https://bugs.openjdk.org/browse/JDK-8317799) Also, please don't ever force push once you have published a PR. Now it makes Martin's comment j

RFR: 8319574: Exec/process tests should be marked as flagless

2023-11-08 Thread Roger Riggs
Tests that directly use ProcessBuilder to spawn processes and do not pass the standard test command line arguments should be marked as `vm.flagless` to indicate to the testing infrastructure that they do not accept them and should not be run with extra test command line options `test.vm.opts` an

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview) [v2]

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 21:08:03 GMT, Viktor Klang wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > Viktor Klang has updated the pull request incrementally with two additional > commits since the last revision: > > - Addressing review feedback > - Make Gatherer.an

Re: RFR: JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols

2023-11-08 Thread Magnus Ihse Bursie
On Mon, 30 Oct 2023 10:54:48 GMT, suchismith1993 wrote: > 1. Adding required compiler flags. > 2. Adding required symbols. > > JBS-ISSUE : [JDK-8317799](https://bugs.openjdk.org/browse/JDK-8317799) First and foremost, the `make/data/hotspot-symbols` directory is, as the name says, for hotspot

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview) [v2]

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 17:19:56 GMT, Tagir F. Valeev wrote: >> In that case the integrator should be a BiConsumer too, no ? > > @forax I thought so initially, but this is not so easy, as there's a `Greedy` > subinterface. If you adapt the `Integrator`, you will lose the ability to > specify the gre

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview) [v2]

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 21:04:47 GMT, Viktor Klang wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > Viktor Klang has updated the pull request incrementally with two additional > commits since the last revision: > > - Addressing review feedback > - Make Gatherer.an

Re: RFR: JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols

2023-11-08 Thread Magnus Ihse Bursie
On Mon, 30 Oct 2023 10:54:48 GMT, suchismith1993 wrote: > 1. Adding required compiler flags. > 2. Adding required symbols. > > JBS-ISSUE : [JDK-8317799](https://bugs.openjdk.org/browse/JDK-8317799) No, no... This is bad on several accounts. - PR Comment: https://git.openjdk.org/jd

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview) [v2]

2023-11-08 Thread Viktor Klang
> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) Viktor Klang has updated the pull request incrementally with two additional commits since the last revision: - Addressing review feedback - Make Gatherer.andThen take a wildcard for the rhs Gatherer state type

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview) [v2]

2023-11-08 Thread Viktor Klang
On Sun, 5 Nov 2023 16:38:38 GMT, Tagir F. Valeev wrote: >> Viktor Klang has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Addressing review feedback >> - Make Gatherer.andThen take a wildcard for the rhs Gatherer state type > > src/java

Re: RFR: JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols

2023-11-08 Thread Martin Doerr
On Mon, 30 Oct 2023 10:54:48 GMT, suchismith1993 wrote: > 1. Adding required compiler flags. > 2. Adding required symbols. > > JBS-ISSUE : [JDK-8317799](https://bugs.openjdk.org/browse/JDK-8317799) Changes requested by mdoerr (Reviewer). LGTM. You may want to replace the Copyright header of th

RFR: JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols

2023-11-08 Thread suchismith1993
1. Adding required compiler flags. 2. Adding required symbols. JBS-ISSUE : [JDK-8317799](https://bugs.openjdk.org/browse/JDK-8317799) - Commit messages: - Update symbols-aix-foreign - Symbol Resolution fix for Panama changes. Changes: https://git.openjdk.org/jdk/pull/16414/files

Re: RFR: 8303920: Avoid calling out to python in DataDescriptorSignatureMissing test [v9]

2023-11-08 Thread Lance Andersen
On Fri, 3 Nov 2023 20:01:44 GMT, Eirik Bjorsnos wrote: > > I can kick of a test run internally next week or perhaps Sunday > > Thanks for your reviews, Lance and Iris! > > FWIW, the test ran fine on Github Actions, including on `linux-x86` (which is > 32-bit, right?): > > ``` > TEST: java/uti

Re: RFR: 8304020: Speed up test/jdk/java/util/zip/ZipFile/TestTooManyEntries.java and clarify its purpose [v3]

2023-11-08 Thread Lance Andersen
On Wed, 8 Nov 2023 13:54:23 GMT, Eirik Bjorsnos wrote: > > > > I think the changes look good overall. Thank you for this. I am not > > > > sure that the `@requires` is needed at this point. > > > > > > > > > Was the `@requires (sun.arch.data.model == "64")` added to satisfy the > > > 8GB memo

Re: RFR: 8311906: Improve robustness of String constructors with mutable array inputs

2023-11-08 Thread Roger Riggs
On Wed, 8 Nov 2023 16:47:17 GMT, Raffaello Giulietti wrote: >> Strings, after construction, are immutable but may be constructed from >> mutable arrays of bytes, characters, or integers. >> The string constructors should guard against the effects of mutating the >> arrays during construction t

Re: RFR: 8316141: Improve CEN header validation checking

2023-11-08 Thread Eirik Bjorsnos
On Wed, 8 Nov 2023 19:59:34 GMT, Lance Andersen wrote: > Please review this PR which enhances the existing CEN header validation > checking to ensure that the > size of the CEN Header + name length + comment length + extra length do not > exceed 65,535 bytes per the PKWare APP.NOTE 4.4.10, 4.

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 19:46:42 GMT, Alan Bateman wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > src/java.base/share/classes/java/util/stream/Gatherer.java line 38: > >> 36: /** >> 37: * An intermediate operation that transforms a stream of input elements >> int

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 19:52:53 GMT, Alan Bateman wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > src/java.base/share/classes/java/util/stream/Gatherer.java line 194: > >> 192: * this gathering operation. >> 193: * >> 194: * By default, this method r

RFR: 8316141: Improve CEN header validation checking

2023-11-08 Thread Lance Andersen
Please review this PR which enhances the existing CEN header validation checking to ensure that the size of the CEN Header + name length + comment length + extra length do not exceed 65,535 bytes per the PKWare APP.NOTE 4.4.10, 4.4.11, & 4.4.12. Also check that current CEN header will not exce

RE : [JShell] SourceCodeAnalysis.CompletionInfo documentation is really vague

2023-11-08 Thread tom L
Hello, I sent an email half a month ago explaining that CompletionInfo#source() can be null even if nothing is explained in the doc about this. But nobody responded Now, I also noticed that with this specific code, source and remaining are nearly equal ``` import jdk.jshell.*; var shell = JShell

Integrated: 8187655: jdk.lambda.vm.InterfaceAccessFlagsTest.testPrivateMethodCall needs update after nestmates support

2023-11-08 Thread Mandy Chung
On Mon, 6 Nov 2023 19:26:26 GMT, Mandy Chung wrote: > `jdk.lambda.vm.InterfaceAccessFlagsTest` uses `ClassToInterfaceConverter` to > mechanically convert a classfile for a Class into an in-memory class > representation of an equivalent Interface. `testPrivateMethodCall` tests to > invoke a p

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Alan Bateman
On Mon, 30 Oct 2023 15:38:35 GMT, Viktor Klang wrote: > This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) src/java.base/share/classes/java/util/stream/Gatherer.java line 38: > 36: /** > 37: * An intermediate operation that transforms a stream of input elements > into a > 38

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues [v4]

2023-11-08 Thread Joe Darcy
> Add discussion of some of the common pitfalls related to decimal <-> binary > conversion. Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Fix typo. - Changes: - all: https://git.openjdk.org/jdk/pull/16566/files - new

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues [v3]

2023-11-08 Thread Joe Darcy
On Wed, 8 Nov 2023 19:40:11 GMT, Brian Burkhalter wrote: >> Joe Darcy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Switch to parseFloat from valueOf, add links. > > src/java.base/share/classes/java/lang/Double.java line 752: > >> 750

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues [v3]

2023-11-08 Thread Brian Burkhalter
On Wed, 8 Nov 2023 19:24:24 GMT, Joe Darcy wrote: >> Add discussion of some of the common pitfalls related to decimal <-> binary >> conversion. > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Switch to parseFloat from valueOf

Integrated: JDK-8311961 Update Manual Test Groups for ATR JDK22

2023-11-08 Thread Bill Huang
On Mon, 6 Nov 2023 22:25:46 GMT, Bill Huang wrote: > Updated jdk_core_manual test groups. This pull request has now been integrated. Changeset: 4c0f6c61 Author:Bill Huang URL: https://git.openjdk.org/jdk/commit/4c0f6c6105a8c7046cc4556d23272750bd9f7682 Stats: 4 lines in 1 file ch

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 18:04:07 GMT, Rémi Forax wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > src/java.base/share/classes/java/util/stream/Gatherers.java line 64: > >> 62: *needlessly >> 63: * 3. allows for more efficient composition and evaluation

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 17:56:09 GMT, Rémi Forax wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > src/java.base/share/classes/java/util/stream/GathererOp.java line 448: > >> 446: private final long targetSize; >> 447: private final Hybrid left

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Sun, 5 Nov 2023 16:43:33 GMT, Tagir F. Valeev wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > src/java.base/share/classes/java/util/stream/GathererOp.java line 162: > >> 160: * consideration at this point doesn't yield any >> performance gains.

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues [v3]

2023-11-08 Thread Joe Darcy
> Add discussion of some of the common pitfalls related to decimal <-> binary > conversion. Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Switch to parseFloat from valueOf, add links. - Changes: - all: https://git.open

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 17:03:38 GMT, Rémi Forax wrote: >> src/java.base/share/classes/java/util/stream/AbstractPipeline.java line 242: >> >>> 240: } >>> 241: >>> 242: // Terminal evaluation methods >> >> This is needed in order to let subclasses override terminal operations such >> as, bu

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues [v3]

2023-11-08 Thread Eirik Bjorsnos
On Wed, 8 Nov 2023 19:24:24 GMT, Joe Darcy wrote: >> Add discussion of some of the common pitfalls related to decimal <-> binary >> conversion. > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Switch to parseFloat from valueOf

Re: RFR: 8319200: Don't use test thread factory in ProcessTools.createLimitedTestJavaProcessBuilder() [v3]

2023-11-08 Thread Leonid Mesnik
On Wed, 8 Nov 2023 19:02:36 GMT, Mark Sheppard wrote: >> Leonid Mesnik has updated the pull request incrementally with one additional >> commit since the last revision: >> >> converted list to array. > > test/lib/jdk/test/lib/process/ProcessTools.java line 387: > >> 385: */ >> 386: >>

Re: RFR: 8319200: Don't use test thread factory in ProcessTools.createLimitedTestJavaProcessBuilder() [v4]

2023-11-08 Thread Leonid Mesnik
> Test thread factory is a mode similar to VM flags and should not be used in > ProcessTools.createLimitedTestJavaProcessBuilder(). Only > createTestJavaProcessBuilder() should use it like jtreg VM options. > > Adding the test thread factory requires the injection of arguments in the > middle o

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues [v2]

2023-11-08 Thread Brian Burkhalter
On Wed, 8 Nov 2023 18:41:15 GMT, Joe Darcy wrote: >> Add discussion of some of the common pitfalls related to decimal <-> binary >> conversion. > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Address issues found by reviewers

Integrated: 8318915: Enhance checks in BigDecimal.toPlainString()

2023-11-08 Thread Raffaello Giulietti
On Wed, 1 Nov 2023 17:40:04 GMT, Raffaello Giulietti wrote: > Prevent a `NegativeArraySizeException` in `BigDecimal.toPlainString()`, > throwing `OutOfMemoryError` instead to indicate that the resulting `String` > would be too large. This pull request has now been integrated. Changeset: a678

Re: RFR: 8319200: Don't use test thread factory in ProcessTools.createLimitedTestJavaProcessBuilder() [v3]

2023-11-08 Thread Mark Sheppard
On Wed, 8 Nov 2023 02:33:29 GMT, Leonid Mesnik wrote: >> Test thread factory is a mode similar to VM flags and should not be used in >> ProcessTools.createLimitedTestJavaProcessBuilder(). Only >> createTestJavaProcessBuilder() should use it like jtreg VM options. >> >> Adding the test thread f

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues [v2]

2023-11-08 Thread Raffaello Giulietti
On Wed, 8 Nov 2023 18:41:15 GMT, Joe Darcy wrote: >> Add discussion of some of the common pitfalls related to decimal <-> binary >> conversion. > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Address issues found by reviewers

Re: RFR: 8306116: Update CLDR to Version 44.0

2023-11-08 Thread Naoto Sato
On Wed, 8 Nov 2023 18:45:47 GMT, Steven Loomis wrote: >> Upgrading CLDR to v44 (https://cldr.unicode.org/index/downloads/cldr-44). >> Besides the data upgrade, regression tests are modified to accommodate the >> following CLDR fixes: >> >> CLDR-16534: Suggestion to rename the Islamic Calendar

Re: RFR: 8306116: Update CLDR to Version 44.0

2023-11-08 Thread Steven Loomis
On Tue, 31 Oct 2023 21:06:13 GMT, Naoto Sato wrote: > Upgrading CLDR to v44 (https://cldr.unicode.org/index/downloads/cldr-44). > Besides the data upgrade, regression tests are modified to accommodate the > following CLDR fixes: > > CLDR-16534: Suggestion to rename the Islamic Calendar to Hijr

RFR: 8296250" Update ICU4J to Version 74.1

2023-11-08 Thread Naoto Sato
Updating the ICU4J components to v74.1 (https://icu.unicode.org/download/74). This change completes the Unicode 15.1 upgrade. The change is merely replacing binary data files used for the Nomalization and BiDi support - Commit messages: - update the license file - Merge branch 'ma

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues [v2]

2023-11-08 Thread Joe Darcy
On Wed, 8 Nov 2023 18:17:00 GMT, Raffaello Giulietti wrote: >> Joe Darcy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Address issues found by reviewers. > > src/java.base/share/classes/java/lang/Double.java line 287: > >> 285: * le

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues [v2]

2023-11-08 Thread Joe Darcy
On Wed, 8 Nov 2023 18:09:52 GMT, Raffaello Giulietti wrote: >> Joe Darcy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Address issues found by reviewers. > > src/java.base/share/classes/java/lang/Double.java line 257: > >> 255: * //

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues [v2]

2023-11-08 Thread Joe Darcy
On Wed, 8 Nov 2023 17:54:50 GMT, Brian Burkhalter wrote: >> Joe Darcy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Address issues found by reviewers. > > src/java.base/share/classes/java/lang/Double.java line 212: > >> 210: * fracti

Re: RFR: 8311906: Improve robustness of String constructors with mutable array inputs

2023-11-08 Thread Raffaello Giulietti
On Mon, 30 Oct 2023 18:34:44 GMT, Roger Riggs wrote: > Strings, after construction, are immutable but may be constructed from > mutable arrays of bytes, characters, or integers. > The string constructors should guard against the effects of mutating the > arrays during construction that might in

RFR: 8306116: Update CLDR to Version 44.0

2023-11-08 Thread Naoto Sato
Upgrading CLDR to v44 (https://cldr.unicode.org/index/downloads/cldr-44). Besides the data upgrade, regression tests are modified to accommodate the following CLDR fixes: CLDR-16534: Suggestion to rename the Islamic Calendar to Hijri Calendar (https://unicode-org.atlassian.net/browse/CLDR-16534

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues [v2]

2023-11-08 Thread Joe Darcy
> Add discussion of some of the common pitfalls related to decimal <-> binary > conversion. Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Address issues found by reviewers. - Changes: - all: https://git.openjdk.org/jdk

clazz deepclone = new DeepClone().do(object_to_be_copied); JEP 198: Light-Weight JSON API

2023-11-08 Thread Birke Heeren
Hi openjdk, I want to support JEP 198: Light-Weight JSON API with an idea: clazz deepclone = new DeepClone().do(object_to_be_copied); class DeepClone clazz do (clazz object_to_be_copied) { return new JSONDecoder().do(new JsonEncoder().do(object_to_be_copied)); } With kind regards, B

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues

2023-11-08 Thread Raffaello Giulietti
On Wed, 8 Nov 2023 17:29:28 GMT, Joe Darcy wrote: > Add discussion of some of the common pitfalls related to decimal <-> binary > conversion. src/java.base/share/classes/java/lang/Double.java line 257: > 255: * // Numeric values listed are exact values > 256: * oneTenthApproxAsFloat = 0.1000

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Mon, 30 Oct 2023 15:38:35 GMT, Viktor Klang wrote: > This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) src/java.base/share/classes/java/util/stream/Gatherers.java line 64: > 62: *needlessly > 63: * 3. allows for more efficient composition and evaluation > 64:

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Mon, 30 Oct 2023 15:38:35 GMT, Viktor Klang wrote: > This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) src/java.base/share/classes/java/util/stream/GathererOp.java line 232: > 230: */ > 231: @SuppressWarnings("unchecked") > 232: private GathererOp(Gatherer gat

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Mon, 30 Oct 2023 15:38:35 GMT, Viktor Klang wrote: > This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) src/java.base/share/classes/java/util/stream/GathererOp.java line 448: > 446: private final long targetSize; > 447: private final Hybrid leftPrede

Re: RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues

2023-11-08 Thread Brian Burkhalter
On Wed, 8 Nov 2023 17:29:28 GMT, Joe Darcy wrote: > Add discussion of some of the common pitfalls related to decimal <-> binary > conversion. src/java.base/share/classes/java/lang/Double.java line 212: > 210: * fraction (0.3); but in base 3, 1/3 is exactly > 211: * 0.1(3), that is 1 

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 17:24:45 GMT, Rémi Forax wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > src/java.base/share/classes/java/util/stream/Gatherer.java line 530: > >> 528: * @param the type of results this integrator can produce >> 529: */ >>

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 17:26:35 GMT, Rémi Forax wrote: >> src/java.base/share/classes/java/util/stream/Gatherer.java line 490: >> >>> 488: * more elements sent to it, {@code false} if otherwise >>> 489: */ >>> 490: default boolean isRejecting() { return false; } >>

Re: RFR: 8318915: Enhance checks in BigDecimal.toPlainString() [v2]

2023-11-08 Thread Brian Burkhalter
On Wed, 8 Nov 2023 09:55:13 GMT, Raffaello Giulietti wrote: >> src/java.base/share/classes/java/math/BigDecimal.java line 3510: >> >>> 3508: : intVal.toString(); >>> 3509: int len = str.length() + trailingZeros; >>> 3510: if (len < 0) { >> >> One could u

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 16:39:33 GMT, Tagir F. Valeev wrote: >> That's a good question, and here's my thinking—`scanRight` doesn't make any >> sense for a construct which supports unboundedness, so if we were discussing >> *Collections* I'd be more inclined to agree (but it is more likely that >> r

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 17:20:56 GMT, Rémi Forax wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > src/java.base/share/classes/java/util/stream/Gatherer.java line 444: > >> 442: */ >> 443: static Gatherer of( >> 444: Supplier initializer, > > wi

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Mon, 30 Oct 2023 15:38:35 GMT, Viktor Klang wrote: > This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) src/java.base/share/classes/java/util/stream/GathererOp.java line 180: > 178: finisher.accept(state, this); > 179: sink.end(); > 180:

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Mon, 30 Oct 2023 15:38:35 GMT, Viktor Klang wrote: > This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) src/java.base/share/classes/java/util/stream/GathererOp.java line 95: > 93: public void accept(X x) { > 94: final var b = rightMost; > 95:

RFR: JDK-8295391: Add discussion of binary <-> decimal conversion issues

2023-11-08 Thread Joe Darcy
Add discussion of some of the common pitfalls related to decimal <-> binary conversion. - Commit messages: - Appease jcheck. - JDK-8295391: Add discussion of binary <-> decimal conversion issues Changes: https://git.openjdk.org/jdk/pull/16566/files Webrev: https://webrevs.openjdk

Re: RFR: 8314891: Additional Zip64 extra header validation [v8]

2023-11-08 Thread Lance Andersen
On Wed, 8 Nov 2023 16:27:56 GMT, Eirik Bjorsnos wrote: > @LanceAndersen > > I noticed that this PR did not update `ZipInputStream.readLOC` to perform > consistency validation between expected and actual extra field size and > values. Any particular reason why processing of LOC headers was not

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Mon, 30 Oct 2023 15:38:35 GMT, Viktor Klang wrote: > This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) src/java.base/share/classes/java/util/stream/GathererOp.java line 50: > 48: */ > 49: final class GathererOp extends ReferencePipeline { > 50: @SuppressWarnings("unch

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Wed, 8 Nov 2023 17:22:05 GMT, Rémi Forax wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > src/java.base/share/classes/java/util/stream/Gatherer.java line 490: > >> 488: * more elements sent to it, {@code false} if otherwise >> 489: *

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Mon, 30 Oct 2023 15:38:35 GMT, Viktor Klang wrote: > This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) src/java.base/share/classes/java/util/stream/Gatherer.java line 444: > 442: */ > 443: static Gatherer of( > 444: Supplier initializer, wildcards ar

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Wed, 8 Nov 2023 15:17:57 GMT, Viktor Klang wrote: >> It's still possible to have a situation where PECS signature could be >> useful, and I don't see any downsides. A user may want to reuse the same >> static integrator instead of creating several identical lambdas just because >> the targe

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Tagir F . Valeev
On Wed, 8 Nov 2023 17:17:21 GMT, Rémi Forax wrote: >> src/java.base/share/classes/java/util/stream/Gatherer.java line 330: >> >>> 328: static Gatherer ofSequential( >>> 329: Integrator integrator, >>> 330: BiConsumer> finisher) { >> >> Probably, accepting `Consumer>

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Sun, 5 Nov 2023 16:18:52 GMT, Tagir F. Valeev wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > src/java.base/share/classes/java/util/stream/Gatherer.java line 330: > >> 328: static Gatherer ofSequential( >> 329: Integrator integrator, >> 330:

Re: RFR: 8187655: jdk.lambda.vm.InterfaceAccessFlagsTest.testPrivateMethodCall needs update after nestmates support [v3]

2023-11-08 Thread Adam Sotona
On Wed, 8 Nov 2023 17:10:11 GMT, Mandy Chung wrote: >> `jdk.lambda.vm.InterfaceAccessFlagsTest` uses `ClassToInterfaceConverter` to >> mechanically convert a classfile for a Class into an in-memory class >> representation of an equivalent Interface. `testPrivateMethodCall` tests >> to invoke

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Wed, 8 Nov 2023 17:10:05 GMT, Tagir F. Valeev wrote: >> Has this proven to be a problem for things like >> [Collectors.mapping(…)](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/stream/Collectors.html#mapping(java.util.function.Function,java.util.stream.Collector)) >>

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Tagir F . Valeev
On Wed, 8 Nov 2023 15:23:39 GMT, Viktor Klang wrote: >> This is especially important given that often you don't know the AA type at >> all. E.g., imagine that you are doing `.andThen(Gatherers.fold(...))`, but >> `fold` returns `Gatherer`, so you can specify explicit `RR`, but >> not `AA`. > >

Re: RFR: 8187655: jdk.lambda.vm.InterfaceAccessFlagsTest.testPrivateMethodCall needs update after nestmates support [v3]

2023-11-08 Thread Mandy Chung
> `jdk.lambda.vm.InterfaceAccessFlagsTest` uses `ClassToInterfaceConverter` to > mechanically convert a classfile for a Class into an in-memory class > representation of an equivalent Interface. `testPrivateMethodCall` tests to > invoke a private method. Before nestmates, invoking a private cl

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 16:37:45 GMT, Tagir F. Valeev wrote: >> TBH I don't think `foldRight` makes much sense for potentially unbounded >> structures such as Stream. In the case you need it, it might be better to >> export it to a List and then reversing it. > > Well, the unboundness argument does

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Tue, 31 Oct 2023 13:19:30 GMT, Viktor Klang wrote: >> This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) > > src/java.base/share/classes/java/util/stream/AbstractPipeline.java line 242: > >> 240: } >> 241: >> 242: // Terminal evaluation methods > > This is needed i

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Fri, 3 Nov 2023 16:51:34 GMT, Viktor Klang wrote: >> Since stream facilities are package-private, we can just use no access >> modifier and remove all new `protected` access modifier (on methods, fields, >> constructors) in this PR. > > @liach We could do that, yet I'm not sure that is stric

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Rémi Forax
On Mon, 30 Oct 2023 15:38:35 GMT, Viktor Klang wrote: > This Pull-Request implements [JEP-461](https://openjdk.org/jeps/461) src/java.base/share/classes/java/util/stream/AbstractPipeline.java line 223: > 221: * consumed > 222: */ > 223: protected AbstractPipeline(AbstractPipeline

Re: RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)

2023-11-08 Thread Viktor Klang
On Wed, 8 Nov 2023 16:26:56 GMT, Tagir F. Valeev wrote: >> @amaembo pairMap should be straight-forward to implement. And regarding >> parallelization I don't think that will necessarily work since it would not >> be able to run incrementally (depth-first). > > Sorry, I'm not sure what do you me

  1   2   >