On Fri, 4 Dec 2026 23:52:27 GMT, Pavel Rappo <[email protected]> wrote:
> It's sad to see this PR closed without integration. What happened? Yes, I agree it's sad to see :) It was taking a long time to get reviewed, which made me suspect that the reviewers were not keen on it for some reason that was not clear from the public record. After asking about it via private channels I was able to confirm that was indeed the case. In a nutshell, the team simply doesn't see the cost/benefit ratio as sufficiently compelling. Obviously that's a judgement call and naturally I disagree, but I also have great respect for the compiler team at Oracle and they're in charge, so it is what it is. It's also worth remembering that for most compiler features, when it comes to cost/benefit ratio, the users end up getting mostly "benefit" while the compiler team ends up getting mostly "cost" (i.e., maintenance burden). How exactly that trade-off is supposed to be judged is a mystery to me, and in any case beyond my pay grade. On a happier (?) note, since some people (including me) have been using this to regularly audit their code (a few folks have asked me about it, and there may be others) I'm planning to maintain the code so it stays usable over time. There are a few variants you can use depending on how aggressive you want to be... * [JDK-8344159](https://github.com/archiecobbs/jdk/tree/JDK-8344159) - This PR * [JDK-8344159+narrowing](https://github.com/archiecobbs/jdk/tree/JDK-8344159%2Bnarrowing) - Adds warnings for annotations that could be narrowed * [JDK-8344159+option](https://github.com/archiecobbs/jdk/tree/JDK-8344159%2Boption) - Adds warnings for unnecessary `-Xlint:-foobar` flags ------------- PR Comment: https://git.openjdk.org/jdk/pull/25167#issuecomment-7428328760
