Menu

#20 JSR-223 problems with using custom STDOUT

v3.0-beta1
closed-fixed
nobody
None
5
2015-03-15
2013-09-09
Tal Liron
No

The problem specifically is in org.luaj.vm2.script.LuajContext: the WriterOutputStream wrapper is broken. I suggest this code instead:

http://grepcode.com/file/repo1.maven.org/maven2/jetty/jetty/4.2.27/org/mortbay/util/WriterOutputStream.java

Also, when you create the PrintStream() wrappers, make sure the second argument is "true" to allow for automatic flushing for each line, which is the expected behavior.

Discussion

  • James Roseborough

    Fixes for this were put into version 3.0

     
  • James Roseborough

    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB