Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8361401

Warnings for use of Sun APIs should not be mandatory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 26
    • tools
    • None
    • 8

      An old fix:

      https://github.com/openjdk/jdk/commit/21312c5617160ee294acedd0636e3e52d607fce8

      Caused Sun API warnings to be emitted using `Log::mandatoryWarning`. This was done to make sure that all warnings went through `Log::report`, while ensuring that such warnings could not be suppressed e.g. with `nowarn`.

      Unfortunately this change also resulted in upgrading these warnings to the status of "mandatory warning" -- meaning a warning that is mandated by the JLS -- which is clearly not the case here. This bad status can be seen when interacting with diagnostic objects using the compiler API.

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: