Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71164

Need to access OutputStream within a TaskListener

XMLWordPrintable

      The current TaskListener API exposes only a PrintStream. This is convenient for typical callers, but PrintStream is simply a utility class, and it makes IOException handling opaque. This has resulted in the need in at least one case to "unwrap" it using reflection, which then breaks on Java 17. The underlying OutputStream should rather be exposed directly. (There are only a few implementations so it should not be hard to offer it most of the time.)

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: