Re: RFR: 8308694: Clarify reversed() default methods' implementation requirements

2023-06-16 Thread Brent Christian
On Fri, 16 Jun 2023 15:30:55 GMT, Roger Riggs wrote: >> Can I get a preliminary review of the wording for Deque.reversed()? If the >> text is good, I'll make corresponding changes to the implSpecs of the other >> reversed() default methods, namely those in List, SortedMap, and SortedSet >>

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v16]

2023-06-09 Thread Brent Christian
On Fri, 22 Jul 2022 20:51:59 GMT, Brent Christian wrote: >> Please review this change to replace the finalizer in >> `AbstractLdapNamingEnumeration` with a Cleaner. >> >> The pieces of state required for cleanup (`LdapCtx homeCtx`, `LdapResult >> res`, and `L

Re: RFR: 8309630: Clean up tests that reference deploy modules

2023-06-07 Thread Brent Christian
On Wed, 7 Jun 2023 19:03:31 GMT, Mandy Chung wrote: > Trivial fix. The deploy modules no longer exist. The tests are updated > not to reference them. Looks fine. - Marked as reviewed by bchristi (Reviewer). PR Review:

Re: RFR: 8308167: SequencedMap::firstEntry throws NPE when first entry has null key or value

2023-06-05 Thread Brent Christian
On Fri, 2 Jun 2023 01:12:32 GMT, Stuart Marks wrote: > Create and use new NullableKeyValueHolder class to accommodate map entries > whose key or value might be null. Changes look good. An observation: `TreeMap` implements `SequencedMap`, and I see that its `firstEntry()` and related

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v16]

2023-05-10 Thread Brent Christian
On Fri, 22 Jul 2022 20:51:59 GMT, Brent Christian wrote: >> Please review this change to replace the finalizer in >> `AbstractLdapNamingEnumeration` with a Cleaner. >> >> The pieces of state required for cleanup (`LdapCtx homeCtx`, `LdapResult >> res`, and `L

Re: RFR: 8298993: (process) java/lang/ProcessBuilder/UnblockSignals.java fails [v2]

2023-04-27 Thread Brent Christian
On Thu, 27 Apr 2023 13:54:53 GMT, Roger Riggs wrote: >> It appears that -Xcomp causes the relative timing of the commands to be >> disturbed enough to prevent the correct operation of the test. The test >> should not be run with -Xcomp > > Roger Riggs has updated the pull request incrementally

Re: RFR: 8298993: (process) java/lang/ProcessBuilder/UnblockSignals.java fails

2023-04-26 Thread Brent Christian
On Tue, 25 Apr 2023 21:43:54 GMT, Roger Riggs wrote: > It appears that -Xcomp causes the relative timing of the commands to be > disturbed enough to prevent the correct operation of the test. The test > should not be run with -Xcomp Changes requested by bchristi (Reviewer).

Re: RFR: 8304836: Make MALLOC_MIN4 macro more robust [v2]

2023-04-21 Thread Brent Christian
On Fri, 21 Apr 2023 16:22:02 GMT, Naoto Sato wrote: >> The current macro assumes the argument is `jint` because all locations pass >> `jint`. However, this would not work if a wider type such as `jlong` is >> passed. Removing the `unsigned` cast and make the condition explicit would >> make

Re: RFR: 8304836: Make MALLOC_MIN4 macro more robust

2023-04-20 Thread Brent Christian
On Thu, 20 Apr 2023 18:39:29 GMT, Naoto Sato wrote: > The current macro assumes the argument is `jint` because all locations pass > `jint`. However, this would not work if a wider type such as `jlong` is > passed. Removing the `unsigned` cast and make the condition explicit would > make the

Integrated: 8305762: FileInputStream and FileOutputStream implSpec should be corrected or removed

2023-04-17 Thread Brent Christian
On Tue, 11 Apr 2023 23:55:50 GMT, Brent Christian wrote: > With the removal of the AltFinalizer mechanism from `FileInputStream` and > `FileOutputStream` in > [JDK-8192939](https://bugs.openjdk.org/browse/JDK-8192939), this portion of > the Implementation Requirement in the c

Re: RFR: 8305762: FileInputStream and FileOutputStream implSpec should be corrected or removed [v2]

2023-04-17 Thread Brent Christian
On Sat, 15 Apr 2023 07:10:46 GMT, Alan Bateman wrote: >> Brent Christian has updated the pull request incrementally with one >> additional commit since the last revision: >> >> updates, per review comments > > src/java.base/share/classes/java/io/FileInpu

Re: RFR: 8305762: FileInputStream and FileOutputStream implSpec should be corrected or removed [v3]

2023-04-17 Thread Brent Christian
OutputStream has been subclassed and the close() method has been >> overridden, the close() method will be called when the FileInputStream is >> unreachable." > > The class doc, and the doc for close(), are updated to correctly reflect > current behavior, and guidance fo

Re: RFR: 8305762: FileInputStream and FileOutputStream implSpec should be corrected or removed [v2]

2023-04-14 Thread Brent Christian
On Fri, 14 Apr 2023 22:27:26 GMT, Brent Christian wrote: >> With the removal of the AltFinalizer mechanism from `FileInputStream` and >> `FileOutputStream` in >> [JDK-8192939](https://bugs.openjdk.org/browse/JDK-8192939), this portion of >> the Implementation Requirem

Re: RFR: 8305762: FileInputStream and FileOutputStream implSpec should be corrected or removed [v2]

2023-04-14 Thread Brent Christian
On Fri, 14 Apr 2023 07:57:20 GMT, Alan Bateman wrote: >> Brent Christian has updated the pull request incrementally with one >> additional commit since the last revision: >> >> updates, per review comments > > src/java.base/share/classes/java/io/FileInpu

Re: RFR: 8305762: FileInputStream and FileOutputStream implSpec should be corrected or removed [v2]

2023-04-14 Thread Brent Christian
OutputStream has been subclassed and the close() method has been >> overridden, the close() method will be called when the FileInputStream is >> unreachable." > > The class doc, and the doc for close(), are updated to correctly reflect > current behavior, and guidance fo

RFR: 8305762: FileInputStream and FileOutputStream implSpec should be corrected or removed

2023-04-12 Thread Brent Christian
With the removal of the AltFinalizer mechanism from `FileInputStream` and `FileOutputStream` in [JDK-8192939](https://bugs.openjdk.org/browse/JDK-8192939), this portion of the Implementation Requirement in the class JavaDoc is no longer true: > If this FileOutputStream has been subclassed and

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v16]

2023-04-07 Thread Brent Christian
On Fri, 22 Jul 2022 20:51:59 GMT, Brent Christian wrote: >> Please review this change to replace the finalizer in >> `AbstractLdapNamingEnumeration` with a Cleaner. >> >> The pieces of state required for cleanup (`LdapCtx homeCtx`, `LdapResult >> res`, and `L

Re: RFR: 8302899: Executors.newSingleThreadExecutor can use Cleaner to shutdown executor [v5]

2023-02-24 Thread Brent Christian
On Fri, 24 Feb 2023 13:44:40 GMT, Alan Bateman wrote: >> Executors.newSingleThreadExecutor returns a delegating ExecutorService that >> has finalizer to shutdown the underlying TPE when the wrapper is >> finalizable. It goes back to JDK 6 and JDK-6399443. This is the last >> non-empty

Re: RFR: 8302899: Executors.newSingleThreadExecutor can use Cleaner to shutdown executor [v4]

2023-02-23 Thread Brent Christian
On Tue, 21 Feb 2023 20:27:44 GMT, Martin Buchholz wrote: >> jtreg will look after this. The default timeout is 120s but it can be >> adjusted with a timeout factor (make time uses a timeout factor of 4). So it >> would be possible to put a limit on this in the test but it can be >>

Re: RFR: 8302899: Executors.newSingleThreadExecutor can use Cleaner to shutdown executor [v3]

2023-02-22 Thread Brent Christian
On Wed, 22 Feb 2023 18:57:00 GMT, Alan Bateman wrote: >> The cleaning action would not have access to the isShutdown() instance >> method of the (Phantom-reachable) AutoShutdownDelegatedExecutorService. > >> The cleaning action would not have access to the isShutdown() instance >> method of

Re: RFR: 8302899: Executors.newSingleThreadExecutor can use Cleaner to shutdown executor [v3]

2023-02-22 Thread Brent Christian
On Wed, 22 Feb 2023 18:02:46 GMT, Alan Bateman wrote: >> src/java.base/share/classes/java/util/concurrent/Executors.java line 844: >> >>> 842: @Override >>> 843: public void shutdown() { >>> 844: cleaner.clean(); >> >> Hmmm... so now shutdown no longer requires

Re: RFR: 8302899: Executors.newSingleThreadExecutor can use Cleaner to shutdown executor [v2]

2023-02-21 Thread Brent Christian
On Tue, 21 Feb 2023 18:24:05 GMT, Alan Bateman wrote: >> Executors.newSingleThreadExecutor returns a delegating ExecutorService that >> has finalizer to shutdown the underlying TPE when the wrapper is >> finalizable. It goes back to JDK 6 and JDK-6399443. This is the last >> non-empty

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v16]

2023-02-08 Thread Brent Christian
On Fri, 22 Jul 2022 20:51:59 GMT, Brent Christian wrote: >> Please review this change to replace the finalizer in >> `AbstractLdapNamingEnumeration` with a Cleaner. >> >> The pieces of state required for cleanup (`LdapCtx homeCtx`, `LdapResult >> res`, and `L

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v16]

2023-01-09 Thread Brent Christian
On Fri, 22 Jul 2022 20:51:59 GMT, Brent Christian wrote: >> Please review this change to replace the finalizer in >> `AbstractLdapNamingEnumeration` with a Cleaner. >> >> The pieces of state required for cleanup (`LdapCtx homeCtx`, `LdapResult >> res`, and `L

[jdk20] Integrated: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt())

2022-12-13 Thread Brent Christian
On Mon, 12 Dec 2022 19:51:22 GMT, Brent Christian wrote: > Backport [8295857](https://bugs.openjdk.org/browse/JDK-8295857) to jdk20 This pull request has now been integrated. Changeset: bf78f716 Author: Brent Christian URL: https://git.openjdk.org/jdk20/com

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v16]

2022-12-12 Thread Brent Christian
On Fri, 22 Jul 2022 20:51:59 GMT, Brent Christian wrote: >> Please review this change to replace the finalizer in >> `AbstractLdapNamingEnumeration` with a Cleaner. >> >> The pieces of state required for cleanup (`LdapCtx homeCtx`, `LdapResult >> res`, and `L

[jdk20] RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt())

2022-12-12 Thread Brent Christian
Backport [8295857](https://bugs.openjdk.org/browse/JDK-8295857) to jdk20 - Commit messages: - Backport c7aca73177339f931f7dfb6627365548a32874f7 Changes: https://git.openjdk.org/jdk20/pull/19/files Webrev: https://webrevs.openjdk.org/?repo=jdk20=19=00 Issue:

Integrated: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt())

2022-12-12 Thread Brent Christian
On Thu, 17 Nov 2022 19:25:42 GMT, Brent Christian wrote: > [JDK-8290036](https://bugs.openjdk.org/browse/JDK-8290036) documented the > shutdown sequence, noting that calling Runtime.halt() skips the shutdown > sequence and immediately terminates the VM. Thus, "threads' current

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v7]

2022-12-07 Thread Brent Christian
lly clause of any method is > executed". > > One ramification of this is that resources within try-with-resource blocks > will not be released. It would be good to state this explicitly. Brent Christian has updated the pull request with a new target base due to a merge or a rebas

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v5]

2022-12-07 Thread Brent Christian
On Wed, 7 Dec 2022 02:39:55 GMT, David Holmes wrote: >> Brent Christian has updated the pull request incrementally with one >> additional commit since the last revision: >> >> put examples into a list, in class doc only, not halt() > > src/java.base/share/class

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v6]

2022-12-07 Thread Brent Christian
lly clause of any method is > executed". > > One ramification of this is that resources within try-with-resource blocks > will not be released. It would be good to state this explicitly. Brent Christian has updated the pull request incrementally with one additional commit

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v5]

2022-12-06 Thread Brent Christian
On Wed, 30 Nov 2022 01:15:54 GMT, Brent Christian wrote: >> [JDK-8290036](https://bugs.openjdk.org/browse/JDK-8290036) documented the >> shutdown sequence, noting that calling Runtime.halt() skips the shutdown >> sequence and immediately terminates the VM. Thus, "t

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v5]

2022-11-29 Thread Brent Christian
lly clause of any method is > executed". > > One ramification of this is that resources within try-with-resource blocks > will not be released. It would be good to state this explicitly. Brent Christian has updated the pull request incrementally with one additional commit since

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v4]

2022-11-21 Thread Brent Christian
lly clause of any method is > executed". > > One ramification of this is that resources within try-with-resource blocks > will not be released. It would be good to state this explicitly. Brent Christian has updated the pull request incrementally with one additional commit

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v2]

2022-11-18 Thread Brent Christian
On Thu, 17 Nov 2022 22:06:47 GMT, Brent Christian wrote: > > Is a CSR needed here? > I will check A CSR is not needed. - PR: https://git.openjdk.org/jdk/pull/11218

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v2]

2022-11-18 Thread Brent Christian
On Thu, 17 Nov 2022 20:32:15 GMT, Brent Christian wrote: >> [JDK-8290036](https://bugs.openjdk.org/browse/JDK-8290036) documented the >> shutdown sequence, noting that calling Runtime.halt() skips the shutdown >> sequence and immediately terminates the VM. Thus, "t

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v3]

2022-11-18 Thread Brent Christian
lly clause of any method is > executed". > > One ramification of this is that resources within try-with-resource blocks > will not be released. It would be good to state this explicitly. Brent Christian has updated the pull request incrementally with one additional commit sin

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v2]

2022-11-17 Thread Brent Christian
On Thu, 17 Nov 2022 20:36:01 GMT, Brian Burkhalter wrote: > Is a CSR needed here? I will check, though the thought is that these are non-normative clarifications to the normative changes made by [8290036](https://bugs.openjdk.org/browse/JDK-8290036). - PR:

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v2]

2022-11-17 Thread Brent Christian
lly clause of any method is > executed". > > One ramification of this is that resources within try-with-resource blocks > will not be released. It would be good to state this explicitly. Brent Christian has updated the pull request incrementally with one additional commit sin

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt())

2022-11-17 Thread Brent Christian
On Thu, 17 Nov 2022 20:08:27 GMT, Lance Andersen wrote: >> src/java.base/share/classes/java/lang/Runtime.java line 95: >> >>> 93: * threads' current methods do not complete normally or abruptly. >>> 94: * {@linkplain Thread.UncaughtExceptionHandler Uncaught exception >>> handlers} are not

RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt())

2022-11-17 Thread Brent Christian
[JDK-8290036](https://bugs.openjdk.org/browse/JDK-8290036) documented the shutdown sequence, noting that calling Runtime.halt() skips the shutdown sequence and immediately terminates the VM. Thus, "threads' current methods do not complete normally or abruptly; no finally clause of any method is

Re: RFR: 8295670: Remove duplication in java/util/Formatter/Basic*.java

2022-10-28 Thread Brent Christian
On Fri, 28 Oct 2022 21:51:03 GMT, Justin Lu wrote: > Issue: Duplication of methods between Basic*.java test classes, due to auto > generation by genBasic.sh > > Fix: Reorganize parts of Basic-X.java.template into base class in Basic.java. > Toggled -nel flag for generation script

Re: RFR: 8295670: Remove duplication in java/util/Formatter/Basic*.java

2022-10-28 Thread Brent Christian
On Fri, 28 Oct 2022 21:51:03 GMT, Justin Lu wrote: > Issue: Duplication of methods between Basic*.java test classes, due to auto > generation by genBasic.sh > > Fix: Reorganize parts of Basic-X.java.template into base class in Basic.java. > Toggled -nel flag for generation script

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v16]

2022-10-28 Thread Brent Christian
On Fri, 22 Jul 2022 20:51:59 GMT, Brent Christian wrote: >> Please review this change to replace the finalizer in >> `AbstractLdapNamingEnumeration` with a Cleaner. >> >> The pieces of state required for cleanup (`LdapCtx homeCtx`, `LdapResult >> res`, and `L

Re: RFR: 8295000: java/util/Formatter/Basic test cleanup [v2]

2022-10-26 Thread Brent Christian
On Wed, 26 Oct 2022 21:00:43 GMT, Justin Lu wrote: >> Issue: java/util/Formatter/Basic regression test emits lots of warning >> messages (~60). >> >> Fix: Made adjustments to Basic-X.java.template as the BasicXXX.java files >> where the errors originate from are generated from the template.

Re: RFR: 8295000: java/util/Formatter/Basic test cleanup [v2]

2022-10-26 Thread Brent Christian
On Wed, 26 Oct 2022 21:00:43 GMT, Justin Lu wrote: >> Issue: java/util/Formatter/Basic regression test emits lots of warning >> messages (~60). >> >> Fix: Made adjustments to Basic-X.java.template as the BasicXXX.java files >> where the errors originate from are generated from the template.

Re: RFR: 8294989: ResourceBundle naming convention issue in JdbcRowSetResourceBundle.java [v13]

2022-10-24 Thread Brent Christian
On Mon, 24 Oct 2022 21:19:21 GMT, Justin Lu wrote: >> Issue: Resource bundle name does not follow proper naming conventions >> according to [getBundle >>

Re: RFR: 8294989: ResourceBundle naming convention issue in JdbcRowSetResourceBundle.java [v12]

2022-10-24 Thread Brent Christian
On Mon, 24 Oct 2022 16:37:56 GMT, Justin Lu wrote: >> Issue: Resource bundle name does not follow proper naming conventions >> according to [getBundle >>

Re: RFR: 8294989: ResourceBundle naming convention issue in JdbcRowSetResourceBundle.java [v11]

2022-10-21 Thread Brent Christian
On Fri, 21 Oct 2022 19:55:55 GMT, Justin Lu wrote: >> Issue: Resource bundle name does not follow proper naming conventions >> according to [getBundle >>

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v12]

2022-10-20 Thread Brent Christian
On Thu, 20 Oct 2022 20:17:59 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v12]

2022-10-20 Thread Brent Christian
On Thu, 20 Oct 2022 20:17:59 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v10]

2022-10-20 Thread Brent Christian
On Wed, 19 Oct 2022 22:36:07 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v10]

2022-10-20 Thread Brent Christian
On Wed, 19 Oct 2022 22:36:07 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v9]

2022-10-19 Thread Brent Christian
On Tue, 18 Oct 2022 23:03:16 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v9]

2022-10-19 Thread Brent Christian
On Tue, 18 Oct 2022 23:03:16 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295000: java/util/Formatter/Basic test cleanup

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 19:48:15 GMT, Justin Lu wrote: >> So, the above suggestion gives explicit auto-boxing, though some might find >> it wordier than necessary. >> >> Since `v.byteValue()` already returns a `byte`, the `(byte)` cast doesn't >> seem necessary. I see that L242 does: >>> `return

Re: RFR: 8295000: java/util/Formatter/Basic test cleanup

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 19:48:15 GMT, Justin Lu wrote: >> So, the above suggestion gives explicit auto-boxing, though some might find >> it wordier than necessary. >> >> Since `v.byteValue()` already returns a `byte`, the `(byte)` cast doesn't >> seem necessary. I see that L242 does: >>> `return

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v6]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 19:25:01 GMT, Justin Lu wrote: >> test/jdk/java/util/Formatter/Basic.java line 90: >> >>> 88: >>> 89: if (fail != 0) { >>> 90: throw new RuntimeException(String.format("%d tests: %d >>> failure(s)" + >> >> You might consider including `", first"` with

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v6]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 19:25:01 GMT, Justin Lu wrote: >> test/jdk/java/util/Formatter/Basic.java line 90: >> >>> 88: >>> 89: if (fail != 0) { >>> 90: throw new RuntimeException(String.format("%d tests: %d >>> failure(s)" + >> >> You might consider including `", first"` with

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v6]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 19:04:29 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v6]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 19:04:29 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295000: java/util/Formatter/Basic test cleanup

2022-10-18 Thread Brent Christian
On Fri, 14 Oct 2022 00:37:53 GMT, Brent Christian wrote: >> Issue: java/util/Formatter/Basic regression test emits lots of warning >> messages (~60). >> >> Fix: Made adjustments to Basic-X.java.template as the BasicXXX.java files >> where the errors ori

Re: RFR: 8295000: java/util/Formatter/Basic test cleanup

2022-10-18 Thread Brent Christian
On Thu, 13 Oct 2022 01:02:43 GMT, Justin Lu wrote: > Issue: java/util/Formatter/Basic regression test emits lots of warning > messages (~60). > > Fix: Made adjustments to Basic-X.java.template as the BasicXXX.java files > where the errors originate from are generated from the template. > >

Re: RFR: 8295000: java/util/Formatter/Basic test cleanup

2022-10-18 Thread Brent Christian
On Fri, 14 Oct 2022 00:37:53 GMT, Brent Christian wrote: >> Issue: java/util/Formatter/Basic regression test emits lots of warning >> messages (~60). >> >> Fix: Made adjustments to Basic-X.java.template as the BasicXXX.java files >> where the errors ori

Re: RFR: 8295000: java/util/Formatter/Basic test cleanup

2022-10-18 Thread Brent Christian
On Thu, 13 Oct 2022 01:02:43 GMT, Justin Lu wrote: > Issue: java/util/Formatter/Basic regression test emits lots of warning > messages (~60). > > Fix: Made adjustments to Basic-X.java.template as the BasicXXX.java files > where the errors originate from are generated from the template. > >

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v5]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 18:54:58 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v4]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 18:54:03 GMT, Justin Lu wrote: >> test/jdk/java/util/Formatter/Basic.java line 93: >> >>> 91: ", first" , fail+pass, fail), first); >>> 92: else >>> 93: System.out.printf("All %s tests passed", pass); >> >> %d, yes? > > Right, will

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v5]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 18:54:58 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v4]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 18:54:03 GMT, Justin Lu wrote: >> test/jdk/java/util/Formatter/Basic.java line 93: >> >>> 91: ", first" , fail+pass, fail), first); >>> 92: else >>> 93: System.out.printf("All %s tests passed", pass); >> >> %d, yes? > > Right, will

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v4]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 18:24:56 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v4]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 18:24:56 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v2]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 18:03:57 GMT, Lance Andersen wrote: >> test/jdk/java/util/Formatter/BasicTestLauncher.java line 47: >> >>> 45: private static final String TZ_UP = "US/Pacific"; >>> 46: // Asia/Novosibirsk time zone >>> 47: private static final String TZ_AN = "Asia/Novosibirsk";

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v2]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 18:03:57 GMT, Lance Andersen wrote: >> test/jdk/java/util/Formatter/BasicTestLauncher.java line 47: >> >>> 45: private static final String TZ_UP = "US/Pacific"; >>> 46: // Asia/Novosibirsk time zone >>> 47: private static final String TZ_AN = "Asia/Novosibirsk";

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v2]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 17:05:08 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher [v2]

2022-10-18 Thread Brent Christian
On Tue, 18 Oct 2022 17:05:08 GMT, Justin Lu wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used within

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher

2022-10-17 Thread Brent Christian
On Mon, 17 Oct 2022 22:20:11 GMT, Lance Andersen wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used

Re: RFR: 8295239: Refactor java/util/Formatter/Basic script into a Java native test launcher

2022-10-17 Thread Brent Christian
On Mon, 17 Oct 2022 22:20:11 GMT, Lance Andersen wrote: >> Issue: Formatter unit tests are launched via basic.sh >> >> Fix: Replace basic.sh with a Java test launcher >> >> Note: Java.internal.math was included in the original configuration of >> Basic, but I removed it as it was not used

Re: RFR: 8295000: java/util/Formatter/Basic test cleanup

2022-10-13 Thread Brent Christian
On Thu, 13 Oct 2022 01:02:43 GMT, Justin Lu wrote: > Issue: java/util/Formatter/Basic regression test emits lots of warning > messages (~60). > > Fix: Made adjustments to Basic-X.java.template as the BasicXXX.java files > where the errors originate from are generated from the template. > >

Re: RFR: 8295000: java/util/Formatter/Basic test cleanup

2022-10-13 Thread Brent Christian
On Thu, 13 Oct 2022 01:02:43 GMT, Justin Lu wrote: > Issue: java/util/Formatter/Basic regression test emits lots of warning > messages (~60). > > Fix: Made adjustments to Basic-X.java.template as the BasicXXX.java files > where the errors originate from are generated from the template. > >

Re: RFR: 6560981: (cal) unused local variables in GregorianCalendar, etc.

2022-10-06 Thread Brent Christian
On Wed, 5 Oct 2022 22:17:26 GMT, Justin Lu wrote: > Problem: Unused variables in GregorianCalendar, JapaneseImperialCalendar, and > Base Calendar. > > Fix: Removed all unused variables in bug description except normalizedYear in > JapaneseImpericalCalendar.getActualMaximum.() as there was no

Re: RFR: 6560981: (cal) unused local variables in GregorianCalendar, etc.

2022-10-06 Thread Brent Christian
On Wed, 5 Oct 2022 22:17:26 GMT, Justin Lu wrote: > Problem: Unused variables in GregorianCalendar, JapaneseImperialCalendar, and > Base Calendar. > > Fix: Removed all unused variables in bug description except normalizedYear in > JapaneseImpericalCalendar.getActualMaximum.() as there was no

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v5]

2022-10-04 Thread Brent Christian
On Mon, 3 Oct 2022 21:22:03 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v5]

2022-10-04 Thread Brent Christian
On Mon, 3 Oct 2022 21:22:03 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v5]

2022-10-04 Thread Brent Christian
On Mon, 3 Oct 2022 21:22:03 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v5]

2022-10-04 Thread Brent Christian
On Mon, 3 Oct 2022 21:22:03 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v4]

2022-10-03 Thread Brent Christian
On Fri, 30 Sep 2022 20:08:10 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with two

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v4]

2022-10-03 Thread Brent Christian
On Fri, 30 Sep 2022 20:08:10 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with two

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v3]

2022-09-30 Thread Brent Christian
On Fri, 30 Sep 2022 16:14:38 GMT, Сергей Цыпанов wrote: >> src/java.base/share/classes/java/text/PatternEntry.java line 291: >> >>> 289: // We re-use these objects in order to improve performance >>> 290: private StringBuilder newChars = new StringBuilder(); >>> 291:

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v3]

2022-09-30 Thread Brent Christian
On Fri, 30 Sep 2022 16:14:38 GMT, Сергей Цыпанов wrote: >> src/java.base/share/classes/java/text/PatternEntry.java line 291: >> >>> 289: // We re-use these objects in order to improve performance >>> 290: private StringBuilder newChars = new StringBuilder(); >>> 291:

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v2]

2022-09-29 Thread Brent Christian
On Thu, 29 Sep 2022 22:15:00 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v2]

2022-09-29 Thread Brent Christian
On Thu, 29 Sep 2022 22:15:00 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text

2022-09-29 Thread Brent Christian
On Thu, 29 Sep 2022 21:48:52 GMT, Justin Lu wrote: > should we update > test/jdk/sun/text/IntHashtable/patch-src/java.base/java/text/Bug4170614Test.java > to include `@test, @bug, @run, @summary`? /* (this test doesn't have an at-test tag because it's run by Bug4170614TestRun.java

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text

2022-09-29 Thread Brent Christian
On Thu, 29 Sep 2022 21:48:52 GMT, Justin Lu wrote: > should we update > test/jdk/sun/text/IntHashtable/patch-src/java.base/java/text/Bug4170614Test.java > to include `@test, @bug, @run, @summary`? /* (this test doesn't have an at-test tag because it's run by Bug4170614TestRun.java

Re: RFR: 8272687: Replace StringBuffer with StringBuilder in RuleBasedCollator

2022-09-26 Thread Brent Christian
On Mon, 26 Sep 2022 18:25:34 GMT, Justin Lu wrote: > Problem: Unnecessary instances of StringBuffer + .toString() > > Fix: StringBuffer Replaced with StringBuilder, and .toString() removed when > possible > > Other: Line 698 in RuleBasedCollator.java also uses a .toString() conversion, > but

Re: RFR: 8272687: Replace StringBuffer with StringBuilder in RuleBasedCollator

2022-09-26 Thread Brent Christian
On Mon, 26 Sep 2022 18:25:34 GMT, Justin Lu wrote: > Problem: Unnecessary instances of StringBuffer + .toString() > > Fix: StringBuffer Replaced with StringBuilder, and .toString() removed when > possible > > Other: Line 698 in RuleBasedCollator.java also uses a .toString() conversion, > but

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v16]

2022-09-02 Thread Brent Christian
On Fri, 22 Jul 2022 20:51:59 GMT, Brent Christian wrote: >> Please review this change to replace the finalizer in >> `AbstractLdapNamingEnumeration` with a Cleaner. >> >> The pieces of state required for cleanup (`LdapCtx homeCtx`, `LdapResult >> res`, and `L

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v16]

2022-07-22 Thread Brent Christian
tests `LdapSearchEnumeration` (not `LdapNamingEnumeration` > or `LdapBindingEnumeration`, though all are subclasses of > `AbstractLdapNamingEnumeration`). > > Thanks. Brent Christian has updated the pull request incrementally with one additional commit since the last revis

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v14]

2022-07-21 Thread Brent Christian
On Wed, 20 Jul 2022 22:21:35 GMT, Brent Christian wrote: >> Please review this change to replace the finalizer in >> `AbstractLdapNamingEnumeration` with a Cleaner. >> >> The pieces of state required for cleanup (`LdapCtx homeCtx`, `LdapResult >> res`, and `L

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v15]

2022-07-21 Thread Brent Christian
tests `LdapSearchEnumeration` (not `LdapNamingEnumeration` > or `LdapBindingEnumeration`, though all are subclasses of > `AbstractLdapNamingEnumeration`). > > Thanks. Brent Christian has updated the pull request incrementally with two additional commits since

Re: RFR: 8283660: Convert com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java finalizer to Cleaner [v14]

2022-07-20 Thread Brent Christian
tests `LdapSearchEnumeration` (not `LdapNamingEnumeration` > or `LdapBindingEnumeration`, though all are subclasses of > `AbstractLdapNamingEnumeration`). > > Thanks. Brent Christian has updated the pull request with a new target base due to a merge or a rebase. The pull request

<    1   2   3   4   5   6   7   8   9   >