Re: RFR: 8274835: Remove unnecessary castings in java.base

2021-10-06 Thread Tagir Valeev
On Thu, Oct 7, 2021 at 12:15 AM Joe Darcy wrote: > Curious. The JDK build is done with javac -Xlint:cast warning enabled > (JDK-8032734) which is intended to catch issues like this. Perhaps IntelliJ > is using a different (or sharper) analysis. Yes, our analysis is written independently of

Re: RFR: 4511638: Double.toString(double) sometimes produces incorrect results [v2]

2021-10-06 Thread Raffaello Giulietti
On Fri, 16 Apr 2021 11:30:32 GMT, Raffaello Giulietti wrote: >> Hello, >> >> here's a PR for a patch submitted on March 2020 >> [1](https://cr.openjdk.java.net/~bpb/4511638/webrev.04/) when Mercurial was >> a thing. >> >> The patch has been edited to adhere to OpenJDK code conventions about

Re: RFR: 8274346: Support for additional content in an app-image. [v2]

2021-10-06 Thread Alexander Matveev
On Wed, 6 Oct 2021 18:53:39 GMT, Andy Herrick wrote: >> 8274346: Support for additional content in an app-image. > > Andy Herrick has updated the pull request incrementally with one additional > commit since the last revision: > > JDK-8274346: Support for additional content in an app-image.

Re: RFR: 4511638: Double.toString(double) sometimes produces incorrect results [v2]

2021-10-06 Thread Brian Burkhalter
On Oct 5, 2021, at 5:05 PM, Raffaello Giulietti mailto:github.com+70726043+rgiulie...@openjdk.java.net>> wrote: The proof of the central theorem of Schubfach is based on continued fractions. It was prepared on ACL2 by the late Dmitry Nadezhin, who was a member of Oracle's formal verification

Re: RFR: JDK-8266431: Dual-Pivot Quicksort improvements (Radix sort) [v6]

2021-10-06 Thread iaroslavski
> Sorting: > > - adopt radix sort for sequential and parallel sorts on int/long/float/double > arrays (almost random and length > 6K) > - fix tryMergeRuns() to better handle case when the last run is a single > element > - minor javadoc and comment changes > > Testing: > - add new data inputs

Re: RFR: 8274835: Remove unnecessary castings in java.base

2021-10-06 Thread Brian Burkhalter
On Thu, 9 Sep 2021 20:12:47 GMT, Andrey Turbanov wrote: > Redundant castings make code harder to read. > Found them by IntelliJ IDEA. > I tried to select only casts which are definitely safe to remove. Also didn't > touch primitive types casts. `java.io` change looks all right. -

Re: Strange colon in CollationElementIterator javadoc

2021-10-06 Thread Naoto Sato
It was meant to be a vertical ellipsis. In hindsight, we could use the explicit character for that purpose. ('⋮' U+22EE) Naoto On 10/6/21 12:07 PM, Andrey Turbanov wrote: Hello. While reading the javadoc of CollationElementIterator I found a strange colon in the example.

Re: RFR: 8274407: (tz) Update Timezone Data to 2021c

2021-10-06 Thread Naoto Sato
On Wed, 6 Oct 2021 19:43:06 GMT, Sean Coffey wrote: >> This PR is to upgrade the time zone data in the JDK to IANA's tzdata2021c >> level. Note that the tz data is "as is", as released by IANA. No `merged >> links` are retracted. >> The PR also fixes two issues along with the 2021c upgrade. >

Re: RFR: 8274407: (tz) Update Timezone Data to 2021c

2021-10-06 Thread Sean Coffey
On Wed, 6 Oct 2021 01:24:49 GMT, Naoto Sato wrote: > This PR is to upgrade the time zone data in the JDK to IANA's tzdata2021c > level. Note that the tz data is "as is", as released by IANA. No `merged > links` are retracted. > The PR also fixes two issues along with the 2021c upgrade. Marked

Re: RFR: 8271820: Implementation of JEP 416: Reimplement Core Reflection with Method Handle [v10]

2021-10-06 Thread Mandy Chung
> This reimplements core reflection with method handles. > > For `Constructor::newInstance` and `Method::invoke`, the new implementation > uses `MethodHandle`. For `Field` accessor, the new implementation uses > `VarHandle`.For the first few invocations of one of these reflective >

Re: RFR: 8274346: Support for additional content in an app-image. [v2]

2021-10-06 Thread Alexey Semenyuk
On Wed, 6 Oct 2021 18:53:39 GMT, Andy Herrick wrote: >> 8274346: Support for additional content in an app-image. > > Andy Herrick has updated the pull request incrementally with one additional > commit since the last revision: > > JDK-8274346: Support for additional content in an app-image.

Strange colon in CollationElementIterator javadoc

2021-10-06 Thread Andrey Turbanov
Hello. While reading the javadoc of CollationElementIterator I found a strange colon in the example. https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/text/CollationElementIterator.java#L87 String testString = "This is a test"; Collator col =

Re: RFR: 8274346: Support for additional content in an app-image. [v2]

2021-10-06 Thread Andy Herrick
> 8274346: Support for additional content in an app-image. Andy Herrick has updated the pull request incrementally with one additional commit since the last revision: JDK-8274346: Support for additional content in an app-image. - Changes: - all:

Re: RFR: 8250678: ModuleDescriptor.Version parsing treats empty segments inconsistently

2021-10-06 Thread Mark Reinhold
On Thu, 30 Sep 2021 11:26:12 GMT, Masanori Yano wrote: > @mbreinhold Could you comment on this pull request? This is somewhat tricky code. I’ll take a look, but give me a few days. - PR: https://git.openjdk.java.net/jdk/pull/5679

Integrated: 8274525: Replace uses of StringBuffer with StringBuilder in java.xml

2021-10-06 Thread Andrey Turbanov
On Wed, 29 Sep 2021 17:56:49 GMT, Andrey Turbanov wrote: > StringBuffer is a legacy synchronized class. There are more modern > alternatives which perform better: > 1. Plain String concatenation should be preferred > 2. StringBuilder is a direct replacement to StringBuffer which generally have

Re: RFR: 8273711: Remove redundant stream() call before forEach in jdk.jlink [v2]

2021-10-06 Thread Daniel Fuchs
On Wed, 15 Sep 2021 07:08:09 GMT, Andrey Turbanov wrote: >> 8273711: Remove redundant stream() call before forEach in jdk.jlink > > Andrey Turbanov has updated the pull request incrementally with one > additional commit since the last revision: > > 8273711: Remove redundant stream() call

Integrated: 8273711: Remove redundant stream() call before forEach in jdk.jlink

2021-10-06 Thread Andrey Turbanov
On Mon, 13 Sep 2021 20:06:08 GMT, Andrey Turbanov wrote: > 8273711: Remove redundant stream() call before forEach in jdk.jlink This pull request has now been integrated. Changeset: 4e7d7caa Author:Andrey Turbanov Committer: Daniel Fuchs URL:

Integrated: 8274464: Remove redundant stream() call before forEach in java.* modules

2021-10-06 Thread Andrey Turbanov
On Wed, 15 Sep 2021 07:12:25 GMT, Andrey Turbanov wrote: > 8274464: Remove redundant stream() call before forEach in java.* modules This pull request has now been integrated. Changeset: f3cedbe9 Author:Andrey Turbanov Committer: Daniel Fuchs URL:

Re: RFR: 8274544: Langtools command's usage were garbled on Japanese Windows [v3]

2021-10-06 Thread Naoto Sato
On Wed, 6 Oct 2021 05:04:28 GMT, Ichiroh Takiguchi wrote: >> JEP-400 (UTF-8 by Default) was eabled on JDK18-b13. >> After JDK18-b13, javac and some other langtool command's usage were garbled >> on Japanese Windows. >> These commands use PrintWriter instead of standard out/err with

Re: RFR: 8274407: (tz) Update Timezone Data to 2021c

2021-10-06 Thread Iris Clark
On Wed, 6 Oct 2021 01:24:49 GMT, Naoto Sato wrote: > This PR is to upgrade the time zone data in the JDK to IANA's tzdata2021c > level. Note that the tz data is "as is", as released by IANA. No `merged > links` are retracted. > The PR also fixes two issues along with the 2021c upgrade. Marked

Re: RFR: 8274407: (tz) Update Timezone Data to 2021c

2021-10-06 Thread Roger Riggs
On Wed, 6 Oct 2021 01:24:49 GMT, Naoto Sato wrote: > This PR is to upgrade the time zone data in the JDK to IANA's tzdata2021c > level. Note that the tz data is "as is", as released by IANA. No `merged > links` are retracted. > The PR also fixes two issues along with the 2021c upgrade. Marked

Re: RFR: 8274835: Remove unnecessary castings in java.base

2021-10-06 Thread Joe Darcy
On Thu, 9 Sep 2021 20:12:47 GMT, Andrey Turbanov wrote: > Redundant castings make code harder to read. > Found them by IntelliJ IDEA. > I tried to select only casts which are definitely safe to remove. Also didn't > touch primitive types casts. Curious. The JDK build is done with javac

RFR: 8273826: Correct Manifest file name and NPE checks

2021-10-06 Thread Sean Coffey
Use correct manifest file name in the Manifest verifier checks. Also - extra null check The test doesn't reproduce the exact issue reported but should prevent future regressions in this area. - Commit messages: - 8273826: Correct Manifest file name and NPE checks Changes:

Re: RFR: 8274835: Remove unnecessary castings in java.base

2021-10-06 Thread Lance Andersen
On Thu, 9 Sep 2021 20:12:47 GMT, Andrey Turbanov wrote: > Redundant castings make code harder to read. > Found them by IntelliJ IDEA. > I tried to select only casts which are definitely safe to remove. Also didn't > touch primitive types casts. Marked as reviewed by lancea (Reviewer).

Re: RFR: 8274835: Remove unnecessary castings in java.base

2021-10-06 Thread Naoto Sato
On Thu, 9 Sep 2021 20:12:47 GMT, Andrey Turbanov wrote: > Redundant castings make code harder to read. > Found them by IntelliJ IDEA. > I tried to select only casts which are definitely safe to remove. Also didn't > touch primitive types casts. Calendar-related changes look good to me.

Re: RFR: 8274544: Langtools command's usage were garbled on Japanese Windows [v2]

2021-10-06 Thread Ichiroh Takiguchi
On Wed, 6 Oct 2021 00:02:55 GMT, Naoto Sato wrote: >> Ichiroh Takiguchi has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8274544: Langtools command's usage were garbled on Japanese Windows > > I just grepped `System.out/err` in jshell

Integrated: JDK-8262944: Improve exception message when automatic module lists provider class not in JAR file

2021-10-06 Thread Christian Stein
On Thu, 16 Sep 2021 09:06:20 GMT, Christian Stein wrote: > This commit appends the name of the JAR file to the exception message for > when automatic module lists a non-existing provider class. This pull request has now been integrated. Changeset: c10de353 Author:Christian Stein

RFR: 8274835: Remove unnecessary castings in java.base

2021-10-06 Thread Andrey Turbanov
Redundant castings make code harder to read. Found them by IntelliJ IDEA. I tried to select only casts which are definitely safe to remove. Also didn't touch primitive types casts. - Commit messages: - [PATCH] Remove unnecessary castings in java.base - [PATCH] Remove unnecessary

Re: RFR: 8274835: Remove unnecessary castings in java.base

2021-10-06 Thread Sean Mullan
On Thu, 9 Sep 2021 20:12:47 GMT, Andrey Turbanov wrote: > Redundant castings make code harder to read. > Found them by IntelliJ IDEA. > I tried to select only casts which are definitely safe to remove. Also didn't > touch primitive types casts. The security related files look fine.

Re: Implementing JEP 400 on Windows 10 and Windows 11

2021-10-06 Thread John Platts
I was actually referring to the src/java.base/windows/native/launcher/java.manifest file (or the jdk/src/windows/resource/java.manifest file on JDK 8) that gets embedded as a manifest in the JDK executables. When I was mentioning "UTF-8 manifest", I was referring to the java.manifest file

Re: Implementing JEP 400 on Windows 10 and Windows 11

2021-10-06 Thread John Platts
When I ran the test programs to determine the behavior changes that occur with the UTF-8 setting in the manifest, I actually copied the executables of the compiled test programs and modified the manifest resource of the copied executables to include the UTF-8 setting. I agree that UTF-8

Re: RFR: 8233674: JarURLConnection.getJarFile throws Exception if some process is holding the file

2021-10-06 Thread Masanori Yano
On Fri, 10 Sep 2021 09:23:52 GMT, Masanori Yano wrote: > Could you please review the 8233674 bug fixes? > This problem is caused by the antivirus software opening the file for a short > time, so CreateFile() should be retried. I inquired of the Microsoft Technical Support about this problem.

Re: RFR: 4511638: Double.toString(double) sometimes produces incorrect results [v2]

2021-10-06 Thread Raffaello Giulietti
On Fri, 16 Apr 2021 11:30:32 GMT, Raffaello Giulietti wrote: >> Hello, >> >> here's a PR for a patch submitted on March 2020 >> [1](https://cr.openjdk.java.net/~bpb/4511638/webrev.04/) when Mercurial was >> a thing. >> >> The patch has been edited to adhere to OpenJDK code conventions about

Re: RFR: 8250678: ModuleDescriptor.Version parsing treats empty segments inconsistently

2021-10-06 Thread Masanori Yano
On Mon, 27 Sep 2021 08:22:02 GMT, Alan Bateman wrote: >> Could you please review the 8250678 bug fixes? >> >> The `parse` method of ModuleDescriptor.Version class behaves incorrectly >> when the input string contains consecutive delimiters. >> >> The `parse` method treats strings as three

Re: RFR: JDK-8274686 : java.util.UUID#hashCode() should use Long.hashCode()

2021-10-06 Thread Peter Levart
On Mon, 4 Oct 2021 21:13:02 GMT, PROgrm_JARvis wrote: > This is trivial fix of > [JDK-8274686](https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8274686) > which replaces manually-computed `int`-based `long` hash-code. > > Because `Long#hashCode(long)` uses other hashing function than

Re: RFR: JDK-8274686 : java.util.UUID#hashCode() should use Long.hashCode()

2021-10-06 Thread Peter Levart
On Mon, 4 Oct 2021 21:13:02 GMT, PROgrm_JARvis wrote: > This is trivial fix of > [JDK-8274686](https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8274686) > which replaces manually-computed `int`-based `long` hash-code. > > Because `Long#hashCode(long)` uses other hashing function than

Re: RFR: JDK-8274686 : java.util.UUID#hashCode() should use Long.hashCode()

2021-10-06 Thread Alan Bateman
On Wed, 6 Oct 2021 08:33:21 GMT, Peter Levart wrote: >> This is trivial fix of >> [JDK-8274686](https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8274686) >> which replaces manually-computed `int`-based `long` hash-code. >> >> Because `Long#hashCode(long)` uses other hashing function

Re: RFR: JDK-8274686 : java.util.UUID#hashCode() should use Long.hashCode()

2021-10-06 Thread Peter Levart
On Mon, 4 Oct 2021 21:13:02 GMT, PROgrm_JARvis wrote: > This is trivial fix of > [JDK-8274686](https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8274686) > which replaces manually-computed `int`-based `long` hash-code. > > Because `Long#hashCode(long)` uses other hashing function than

Re: RFR: 8274811: Remove superfluous use of boxing in java.base

2021-10-06 Thread Сергей Цыпанов
On Sat, 11 Sep 2021 12:11:50 GMT, Andrey Turbanov wrote: > Usages of primitive types should be preferred and makes code easier to read. > Similar cleanups: > 1. [JDK-8273168](https://bugs.openjdk.java.net/browse/JDK-8273168) > java.desktop > 2.

Re: RFR: 8274811: Remove superfluous use of boxing in java.base

2021-10-06 Thread Andrey Turbanov
On Sat, 11 Sep 2021 17:22:01 GMT, Сергей Цыпанов wrote: >> Usages of primitive types should be preferred and makes code easier to read. >> Similar cleanups: >> 1. [JDK-8273168](https://bugs.openjdk.java.net/browse/JDK-8273168) >> java.desktop >> 2.

RFR: 8274811: Remove superfluous use of boxing in java.base

2021-10-06 Thread Andrey Turbanov
Usages of primitive types should be preferred and makes code easier to read. Similar cleanups: 1. [JDK-8273168](https://bugs.openjdk.java.net/browse/JDK-8273168) java.desktop 2. [JDK-8274234](https://bugs.openjdk.java.net/browse/JDK-8274234) java.sql.rowset - Commit messages: -

Re: RFR: 8274544: Langtools command's usage were garbled on Japanese Windows [v3]

2021-10-06 Thread Alan Bateman
On Wed, 6 Oct 2021 05:04:28 GMT, Ichiroh Takiguchi wrote: >> JEP-400 (UTF-8 by Default) was eabled on JDK18-b13. >> After JDK18-b13, javac and some other langtool command's usage were garbled >> on Japanese Windows. >> These commands use PrintWriter instead of standard out/err with