You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alternatively, javac --help-lint should print the same
would it be useful to add this list to ecj, so that instead of reporting Unsupported @SuppressWarnings("this-escape") we could just remain silent? If a token is in the list of javac's categories, it's less likely to be a simple typo.
in discussion I was reminded that the following clumsy message could perhaps be avoided: "At least one of the problems in category 'foo' is not analysed due to a compiler option being ignored":
if "supression" warnings are enabled, this might tell the compiler to perform even disabled analyses. We should discuss if "technically" enabling all analyses and filtering only during ProblemHandler.handle() is acceptable in that case.
Via https://bugs.openjdk.org/browse/JDK-8356043 javac starts to report when
@SuppressWarningsis unnecesary (which ecj does since 2008).There are, however, a few interesting bits in this, which are worth considering for ecj:
@SuppressWarnings("suppression")javac --help-lintshould print the sameUnsupported @SuppressWarnings("this-escape")we could just remain silent? If a token is in the list of javac's categories, it's less likely to be a simple typo.ProblemHandler.handle()is acceptable in that case.@SuppressWarnings("suppression")and where the undesired info appears, just add "suppression".