Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4946

ManagedDeployableContainer.ConsoleConsumer should not change the console output

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.3.Final (EAP)
    • 7.1.2.Final (EAP)
    • None
    • None

      Executing the following code in a standalone J2SE app:

      val out = new PrintStream(new BufferedOutputStream(new FileOutputStream(FileDescriptor.out), 128), true, "UTF-8")
      out.print("hello\rgoodbye")

      Will print:

      goodbye

      However, when running an Arquillian test with AS, if the code within AS writes that, it will print:

      hello
      goodbye

      The culprit is org.jboss.as.arquillian.container.managed.ManagedDeployableContainer.ConsoleConsumer whose consuming the process output and it's using readLine, which is translating \r to \n, when it really shouldn't be any transformation of the output.

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: