-AaddSuppressWarningsAnnotation=true relies on compiler-specific behavior and is therefore broken

Description

See for background. That bug added support for adding

to generated metamodel source files.

Unfortunately, @SuppressWarnings("all") is an Eclipe-ism and not guaranteed to actually do anything.

In fact the JDK compiler ignores it:

Instead of suppressing "all" which is technically meaningless, it should suppress (at least) "rawtypes" and probably "unchecked" too.

follows up on

Activity

Show:

FlorianFJuly 5, 2023 at 12:33 PM

  1. documentation still claims its “all”, but its “deprecation” and “rawtypes” ?

  2. With “deprecation” and “rawtypes”, ironically Eclipse will warn with something like this

    Unnecessary @SuppressWarnings("deprecation")
    There should be an option to specify the suppressions explicitly (e.g. to be able to also set “javadoc”, or eventually “all”)

Not sure whether I would be eligible to open a new ticket for this.

Vlad MihalceaOctober 30, 2017 at 9:30 AM

Applied PR upstream.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created October 27, 2017 at 9:48 PM
Updated July 5, 2023 at 12:33 PM
Resolved October 30, 2017 at 9:30 AM