-
Enhancement
-
Resolution: Fixed
-
P4
-
7
-
b105
-
generic
-
generic
-
Not verified
Various warning messages contain the name of a -Xlint suboption, as in
[abc] your code might be wrong
Use -Xlint:abc to see more details
The use of literal embedded option names is fragile and susceptible to error. Further, such option names should not be localized.
It would be better to replace all such names with an argument to the diagnostic. The argument should be a Lint.Category, which should possible be augmented to implement Formattable, to provide the loswer case text used in the option name.
[abc] your code might be wrong
Use -Xlint:abc to see more details
The use of literal embedded option names is fragile and susceptible to error. Further, such option names should not be localized.
It would be better to replace all such names with an argument to the diagnostic. The argument should be a Lint.Category, which should possible be augmented to implement Formattable, to provide the loswer case text used in the option name.
- relates to
-
JDK-8292634 Need output information to suppress Xlint warnings
-
- Closed
-