-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.

Environment

None

Assignee

Unassigned

Reporter

Archie Cobbs

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure