RFR: 8317376: Minor improvements to the 'this' escape analyzer

2023-12-19 Thread Archie Cobbs
Please review several fixes and improvements to the `this-escape` lint warning analyzer. The goal here is to apply some relatively simple logical fixes that improve the precision and accuracy of the analyzer, and capture the remaining low-hanging fruit so we can consider the analyzer relatively

Re: RFR: 8317376: Minor improvements to the 'this' escape analyzer

2023-12-20 Thread Archie Cobbs
On Wed, 20 Dec 2023 09:03:34 GMT, Daniel Fuchs wrote: > I assume these were the reason why this-escape analysis had been disabled on > java.net.http, and I expect the reason why the analysis can be reenabled by > default is because of point 3 above? No, the goal here is simply to remove unnece

Re: RFR: 8317376: Minor improvements to the 'this' escape analyzer [v2]

2024-01-19 Thread Archie Cobbs
nce. > > In other words, we should be treating "via an outer instance" as just another > flavor of indirection along with "direct" and "indirect". > > As a result, with this patch the `OuterRef` class goes away and a new > `Indirection` enum has been

Re: RFR: 8317376: Minor improvements to the 'this' escape analyzer [v3]

2024-02-16 Thread Archie Cobbs
nce. > > In other words, we should be treating "via an outer instance" as just another > flavor of indirection along with "direct" and "indirect". > > As a result, with this patch the `OuterRef` class goes away and a new > `Indirection` enum has been

Re: RFR: 8317376: Minor improvements to the 'this' escape analyzer [v4]

2024-04-09 Thread Archie Cobbs
nce. > > In other words, we should be treating "via an outer instance" as just another > flavor of indirection along with "direct" and "indirect". > > As a result, with this patch the `OuterRef` class goes away and a new > `Indirection` enum has been

Re: RFR: 8317376: Minor improvements to the 'this' escape analyzer [v5]

2024-04-16 Thread Archie Cobbs
nce. > > In other words, we should be treating "via an outer instance" as just another > flavor of indirection along with "direct" and "indirect". > > As a result, with this patch the `OuterRef` class goes away and a new > `Indirection` enum has been

Re: RFR: 8317376: Minor improvements to the 'this' escape analyzer [v4]

2024-04-16 Thread Archie Cobbs
On Tue, 16 Apr 2024 18:00:50 GMT, Vicente Romero wrote: >> Archie Cobbs has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains eight commits: >> >> - Merge branch 'master' into JDK-8317376 >>

Integrated: 8317376: Minor improvements to the 'this' escape analyzer

2024-04-17 Thread Archie Cobbs
On Mon, 16 Oct 2023 22:08:53 GMT, Archie Cobbs wrote: > Please review several fixes and improvements to the `this-escape` lint > warning analyzer. > > The goal here is to apply some relatively simple logical fixes that improve > the precision and accuracy of the analyzer,

Re: RFR: 8343486: Remove unnecessary @SuppressWarnings annotations and -Xlint:-foo options [v2]

2024-11-05 Thread Archie Cobbs
On Sun, 3 Nov 2024 03:17:14 GMT, Archie Cobbs wrote: >> Please review this patch which removes unnecessary `@SuppressWarnings` >> annotations and `-Xlint:-foo` options. > > Archie Cobbs has updated the pull request with a new target base due to a > merge or a rebase. T

Integrated: 8343486: Remove unnecessary @SuppressWarnings annotations and -Xlint:-foo options

2024-11-05 Thread Archie Cobbs
On Sat, 2 Nov 2024 16:23:34 GMT, Archie Cobbs wrote: > Please review this patch which removes unnecessary `@SuppressWarnings` > annotations and `-Xlint:-foo` options. This pull request has now been integrated. Changeset: c799cad1 Author:Archie Cobbs URL: https://git.openj

Re: RFR: 8343486: Remove unnecessary @SuppressWarnings annotations and -Xlint:-foo options [v2]

2024-11-05 Thread Archie Cobbs
On Tue, 5 Nov 2024 16:42:17 GMT, Magnus Ihse Bursie wrote: > Eh... I tried to say that I had only reviewed part of this PR. Maybe I should > have made that clearer by bumping the number of required reviewers as well; I > usually do that but I forgot it this time. Argh, sorry... I was just blin

RFR: 8343486: Remove unnecessary @SuppressWarnings annotations and -Xlint:-foo options

2024-11-02 Thread Archie Cobbs
Please review this patch which removes unnecessary `@SuppressWarnings` annotations and `-Xlint:-foo` options. - Commit messages: - Remove unnecessary @SuppressWarnings annotations and -Xlint:-key flags. Changes: https://git.openjdk.org/jdk/pull/21859/files Webrev: https://webrevs

RFR: 8343477: Remove unnecessary @SuppressWarnings annotations (compiler)

2024-11-02 Thread Archie Cobbs
Please review this patch which removes unnecessary `@SuppressWarnings` annotations. - Commit messages: - Merge branch 'master' into SuppressWarningsCleanup-compiler - Apply change that was missed somehow. - Undo change that will be moved to the core-libs branch. - Remove unnecess

RFR: 8343478: Remove unnecessary @SuppressWarnings annotations (core-libs)

2024-11-02 Thread Archie Cobbs
Please review this patch which removes unnecessary `@SuppressWarnings` annotations. - Commit messages: - Remove unnecessary @SuppressWarnings annotations. Changes: https://git.openjdk.org/jdk/pull/21852/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21852&range=00 Issue

Re: RFR: 8343477: Remove unnecessary @SuppressWarnings annotations (compiler) [v2]

2024-11-02 Thread Archie Cobbs
> Please review this patch which removes unnecessary `@SuppressWarnings` > annotations. Archie Cobbs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request co

Re: RFR: 8343478: Remove unnecessary @SuppressWarnings annotations (core-libs) [v2]

2024-11-02 Thread Archie Cobbs
> Please review this patch which removes unnecessary `@SuppressWarnings` > annotations. Archie Cobbs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request co

Re: RFR: 8343486: Remove unnecessary @SuppressWarnings annotations and -Xlint:-foo options [v2]

2024-11-02 Thread Archie Cobbs
> Please review this patch which removes unnecessary `@SuppressWarnings` > annotations and `-Xlint:-foo` options. Archie Cobbs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/

Re: RFR: 8345263: Make sure that lint categories are used correctly when logging lint warnings [v2]

2024-12-05 Thread Archie Cobbs
On Thu, 5 Dec 2024 14:34:29 GMT, Jan Lahoda wrote: > we probably need something that will avoid running the lint's code completely > in a (semi-)automatic way. That could be part of a more generic 22088. Agreed. Slight comment hijack follows... The [unnecessary suppression warning proposal](

Re: RFR: 8345263: Make sure that lint categories are used correctly when logging lint warnings

2024-12-04 Thread Archie Cobbs
On Wed, 4 Dec 2024 17:11:26 GMT, Maurizio Cimadamore wrote: > This PR tightens up the logic by which javac reports lint warnings. > Currently, lint warnings are typically emitted using the following idiom: > > > if (lint.isEnabled(LintCategory.DIVZERO) { > log.warning(LintCategory.DIVZERO

Re: RFR: 8345263: Make sure that lint categories are used correctly when logging lint warnings [v2]

2024-12-05 Thread Archie Cobbs
On Thu, 5 Dec 2024 22:08:48 GMT, Vicente Romero wrote: >> Maurizio Cimadamore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add missing lint categories in compiler.properties >> Simplify some lambda expressions >> Simplify Lint::lo

Re: RFR: 8346294: Invalid lint category specified in compiler.properties [v2]

2024-12-16 Thread Archie Cobbs
On Mon, 16 Dec 2024 19:21:54 GMT, Archie Cobbs wrote: >> Please review this fix for an incorrect `lint:` tag in >> `compiler.properties`, plus an adjustment to the build process to >> automatically detect and fail the build in case of any similar typos in the >> futu

RFR: 8346294: Invalid lint category specified in compiler.properties

2024-12-16 Thread Archie Cobbs
Please review this fix for an incorrect `lint:` tag in `compiler.properties`, plus an adjustment to the build process to automatically detect and fail the build in case of any similar typos in the future. - Commit messages: - Fix invalid "lint" tag and update build to automatically

Re: RFR: 8346294: Invalid lint category specified in compiler.properties [v2]

2024-12-16 Thread Archie Cobbs
On Mon, 16 Dec 2024 18:35:44 GMT, Maurizio Cimadamore wrote: >> Archie Cobbs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Cleanups & refactoring based on review suggestions. > > src/jdk.compiler

Re: RFR: 8346294: Invalid lint category specified in compiler.properties [v2]

2024-12-16 Thread Archie Cobbs
> Please review this fix for an incorrect `lint:` tag in `compiler.properties`, > plus an adjustment to the build process to automatically detect and fail the > build in case of any similar typos in the future. Archie Cobbs has updated the pull request incrementally with one additiona

Integrated: 8346294: Invalid lint category specified in compiler.properties

2024-12-16 Thread Archie Cobbs
On Mon, 16 Dec 2024 16:54:46 GMT, Archie Cobbs wrote: > Please review this fix for an incorrect `lint:` tag in `compiler.properties`, > plus an adjustment to the build process to automatically detect and fail the > build in case of any similar typos in the future. This pull reques

Re: RFR: 8310310: Migrate CreateSymbols tool in make/langtools to Classfile API

2025-04-09 Thread Archie Cobbs
On Tue, 25 Mar 2025 00:39:17 GMT, Chen Liang wrote: > Migrates the CreateSymbols tool to use the ClassFile API, away from > com.sun.tools.classfile. > > Need the boot jdk `--with-boot-jdk=` to be 24; thus a draft for now; but this > is open to reviews. > > Together with #24206, the old com.su

Withdrawn: 8261669: Add lint warning for widening primitive conversions that lose information

2025-02-21 Thread Archie Cobbs
On Thu, 20 Feb 2025 20:57:47 GMT, Archie Cobbs wrote: > This PR is a prototype to stimulate discussion of > [JDK-8261669](https://bugs.openjdk.org/browse/JDK-8261669), which seeks to > add more warnings when an implicit cast of a primitive value might lose > information. This

Re: RFR: 8261669: Add lint warning for widening primitive conversions that lose information [v2]

2025-02-21 Thread Archie Cobbs
gt; As usual, warnings can be suppressed via `@SuppressWarnings` or by adding an > explicit cast: > > > float a = (float)0x1001; // no warning here Archie Cobbs has updated the pull request incrementally with one additional commit since the last revision: Check exactness of c

Re: RFR: 8261669: Add lint warning for widening primitive conversions that lose information

2025-02-21 Thread Archie Cobbs
On Fri, 21 Feb 2025 11:31:34 GMT, Raffaello Giulietti wrote: > You may want to take a look at `java.lang.runtime.ExactConversionsSupport`. Thanks! That's exactly what I needed. Fixed in 92b479a94ff. > There are several reasons that it would be ideal to hold this PR off, for > now. There is an

RFR: 8261669: Add lint warning for widening primitive conversions that lose information

2025-02-20 Thread Archie Cobbs
This PR is a prototype to stimulate discussion of [JDK-8261669](https://bugs.openjdk.org/browse/JDK-8261669), which seeks to add more warnings when an implicit cast of a primitive value might lose information. This can possibly happen when converting an `int` to `float`, or when converting a `l

Re: RFR: 8261669: Add lint warning for widening primitive conversions that lose information

2025-02-20 Thread Archie Cobbs
On Thu, 20 Feb 2025 20:57:47 GMT, Archie Cobbs wrote: > This PR is a prototype to stimulate discussion of > [JDK-8261669](https://bugs.openjdk.org/browse/JDK-8261669), which seeks to > add more warnings when an implicit cast of a primitive value might lose > information. This