Re: RFR: 8344159: Add lint warnings for unnecessary warning suppression [v2]

2025-09-28 Thread Archie Cobbs
ions. > * Add `-Xlint:-suppression` flags to `*.gmk` build files so the build doesn't > break > > ยน The suppression of a lint category is "validated" as soon as it suppresses > some warning in that category Archie Cobbs has updated the pull request with a new target

Re: RFR: 8344159: Add lint warnings for unnecessary warning suppression

2025-09-24 Thread Archie Cobbs
On Wed, 24 Sep 2025 16:33:18 GMT, Pavel Rappo wrote: > Basically, if `@SuppressWarnings("suppression")` was accidentally left with > no suppressions under it, the compiler would warn you, so you could remove > it. Because what's the reason for `@SuppressWarnings("suppression")` whose > scope c

Re: RFR: 8344159: Add lint warnings for unnecessary warning suppression

2025-09-24 Thread Archie Cobbs
On Tue, 23 Sep 2025 22:26:08 GMT, Pavel Rappo wrote: > Thanks for this explanation. I can now see what you mean in the _Different > Compiler Versions_ section of the CSR. That's some quality reasoning and > future-proofing. Credit goes to @jddarcy for pinpointing those possible traps. > I sup

Re: RFR: 8344159: Add lint warnings for unnecessary warning suppression

2025-09-23 Thread Archie Cobbs
On Tue, 23 Sep 2025 21:02:03 GMT, Pavel Rappo wrote: > While I've read the CSR, I haven't read any compiler-dev thread(s). At least > not carefully. I also haven't seen the diff. FWIW there is a discussion thread (starting [here](https://mail.openjdk.org/pipermail/compiler-dev/2024-November/02

Re: RFR: 8344159: Add lint warnings for unnecessary warning suppression

2025-09-23 Thread Archie Cobbs
On Tue, 23 Sep 2025 21:25:26 GMT, Pavel Rappo wrote: > The reason I ask is that I can probably see how it could be useful to emit a > "suppression" warning from this: It's a reasonable option to consider. I think the main worry is that it could complicate build situations where the same code w

Re: RFR: 8344159: Add lint warnings for unnecessary warning suppression

2025-09-23 Thread Archie Cobbs
On Sat, 10 May 2025 20:20:32 GMT, Archie Cobbs wrote: > This PR adds a new compiler warning for `@SuppressWarnings` annotations that > don't actually suppress any warnings. > > Summary of code changes: > > * Add new warning and associated lint category `"suppress

Re: RFR: 8344159: Add lint warnings for unnecessary warning suppression

2025-09-16 Thread Archie Cobbs
On Tue, 16 Sep 2025 18:58:41 GMT, Joe Darcy wrote: > Hi @archiecobbs , are there bugs filed to clean the causes of the warnings? Hi @jddarcy, At the beginning of this project as a preliminary step I filed a bunch of bugs+PR's to remove unnecessary `@SuppressWarnings` annotations. These were a

RFR: 8344159: Add lint warnings for unnecessary warning suppression

2025-09-15 Thread Archie Cobbs
This PR adds a new compiler warning for `@SuppressWarnings` annotations that don't actually suppress any warnings. Summary of code changes: * Add new warning and associated lint category `"suppression"` * Update `LintMapper` to keep track of which `@SuppressWarnings` suppressions have been vali

Re: RFR: 8355561: [macos] Build failure with Xcode 16.3

2025-05-05 Thread Archie Cobbs
On Mon, 28 Apr 2025 19:47:03 GMT, Sergey Bylokhov wrote: > Multiple similar issues detected in PLATFORM_API_MacOSX_Ports.cpp more info > about https://github.com/llvm/llvm-project/issues/62836 > > jdk/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_Ports.cpp:127:39: > error: varia

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: 8346953: Remove unnecessary @SuppressWarnings annotations (client, #2)

2025-01-06 Thread Archie Cobbs
On Thu, 2 Jan 2025 20:01:28 GMT, Archie Cobbs wrote: > Please review this patch which removes unnecessary `@SuppressWarnings` > annotations. > > This issue is a follow up to > [JDK-8343476](https://bugs.openjdk.org/browse/JDK-8343476) to remove some > additional warnings t

Integrated: 8346953: Remove unnecessary @SuppressWarnings annotations (client, #2)

2025-01-06 Thread Archie Cobbs
On Thu, 2 Jan 2025 20:01:28 GMT, Archie Cobbs wrote: > Please review this patch which removes unnecessary `@SuppressWarnings` > annotations. > > This issue is a follow up to > [JDK-8343476](https://bugs.openjdk.org/browse/JDK-8343476) to remove some > additional warnings t

RFR: 8346953: Remove unnecessary @SuppressWarnings annotations (client, #2)

2025-01-02 Thread Archie Cobbs
Please review this patch which removes unnecessary `@SuppressWarnings` annotations. This issue is a follow up to [JDK-8343476](https://bugs.openjdk.org/browse/JDK-8343476) to remove some additional warnings that were missed in that issue. - Commit messages: - Remove unnecessary @

Integrated: 8343476: Remove unnecessary @SuppressWarnings annotations (client)

2024-11-19 Thread Archie Cobbs
On Sat, 2 Nov 2024 15:22:15 GMT, Archie Cobbs wrote: > Please review this patch which removes unnecessary `@SuppressWarnings` > annotations. This pull request has now been integrated. Changeset: 8a1f9f0a Author:Archie Cobbs URL: https://git.openjdk.org/jdk/

Re: RFR: 8343476: Remove unnecessary @SuppressWarnings annotations (client) [v4]

2024-11-19 Thread Archie Cobbs
On Tue, 19 Nov 2024 20:33:40 GMT, Phil Race wrote: > There is good chance you will either want to do a follow-up of this PR, or > re-run again against the latest master. Indeed... just had to resolve some conflicts with recent changes. As for now, all of the unnecessary `@SuppressWarnings` ha

Re: RFR: 8343476: Remove unnecessary @SuppressWarnings annotations (client) [v5]

2024-11-19 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 pull request now contains eight commits: - Remove more unnecessary @SuppressWarnings annotations. -

Re: RFR: 8343476: Remove unnecessary @SuppressWarnings annotations (client) [v4]

2024-11-13 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: 8343476: Remove unnecessary @SuppressWarnings annotations (client) [v3]

2024-11-08 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: 8343476: Remove unnecessary @SuppressWarnings annotations (client) [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

RFR: 8343476: Remove unnecessary @SuppressWarnings annotations (client)

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/21850/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21850&range=00 Issue

Re: RFR: 8071693: Introspector ignores default interface methods [v8]

2023-04-26 Thread Archie Cobbs
On Tue, 25 Apr 2023 18:52:16 GMT, Archie Cobbs wrote: >> The `Introspector` class was never updated to include `default` methods >> inherited from interfaces. >> >> This patch attempts to fix that omission. > > Archie Cobbs has updated the pull request with a new

Integrated: 8071693: Introspector ignores default interface methods

2023-04-26 Thread Archie Cobbs
On Wed, 19 Apr 2023 21:29:05 GMT, Archie Cobbs wrote: > The `Introspector` class was never updated to include `default` methods > inherited from interfaces. > > This patch attempts to fix that omission. This pull request has now been integrated. Changeset: 1e4eafb4 Author:

Re: RFR: 8071693: Introspector ignores default interface methods [v7]

2023-04-25 Thread Archie Cobbs
On Tue, 25 Apr 2023 18:31:01 GMT, Alexey Ivanov wrote: >> Archie Cobbs has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Jam lines into 80 columns. >> - Add more scenarios to the regression test. > &

Re: RFR: 8071693: Introspector ignores default interface methods [v8]

2023-04-25 Thread Archie Cobbs
> The `Introspector` class was never updated to include `default` methods > inherited from interfaces. > > This patch attempts to fix that omission. Archie Cobbs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes t

Re: RFR: 8071693: Introspector ignores default interface methods [v6]

2023-04-24 Thread Archie Cobbs
On Mon, 24 Apr 2023 18:14:05 GMT, Sergey Bylokhov wrote: >> Archie Cobbs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add braces around if clause. > > test/jdk/java/beans/Introspector/DefaultMetho

Re: RFR: 8071693: Introspector ignores default interface methods [v7]

2023-04-24 Thread Archie Cobbs
> The `Introspector` class was never updated to include `default` methods > inherited from interfaces. > > This patch attempts to fix that omission. Archie Cobbs has updated the pull request incrementally with two additional commits since the last revision: - Jam lines int

Re: RFR: 8071693: Introspector ignores default interface methods [v5]

2023-04-24 Thread Archie Cobbs
On Mon, 24 Apr 2023 17:30:56 GMT, Alexey Ivanov wrote: >> 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 contain

Re: RFR: 8071693: Introspector ignores default interface methods [v6]

2023-04-24 Thread Archie Cobbs
> The `Introspector` class was never updated to include `default` methods > inherited from interfaces. > > This patch attempts to fix that omission. Archie Cobbs has updated the pull request incrementally with one additional commit since the last revision: Add braces arou

Re: RFR: 8071693: Introspector ignores default interface methods [v5]

2023-04-24 Thread Archie Cobbs
On Fri, 21 Apr 2023 20:27:57 GMT, Archie Cobbs wrote: >> The `Introspector` class was never updated to include `default` methods >> inherited from interfaces. >> >> This patch attempts to fix that omission. > > Archie Cobbs has updated the pull request with a new