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

Diagnostic.Kind.NOTE sent to stderr rather than stdout

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      If an annotation processor reports messages as Kind.NOTE, javac prints them to stderr. You might expect them to go to stdout, as tools generally treat text printed to stderr as potential warnings or errors.

      ---%<---
      $ javac .... > /dev/null
      Note: pkg.C to be registered as a java.lang.Runnable
      $ javac .... 2> /dev/null
      $
      ---%<---

      As a consequence, when running <javac> from 'ant -q', NOTEs from processors are still printed, when you would want only warnings or errors to be printed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jglick Jesse Glick (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: