Details
-
Type:
Defect
-
Status:
Closed
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.3
-
Component/s: None
-
Labels:None
-
Approval:Ok
Description
There seem to be several places in clojure/contrib where out is being used as a java.io.PrintWriter, despite being documented as of type java.io.Writer
Examples are:
- The reflection warnings from the compiler
- Exception printouts from contrib.sql
This causes very confusing errors, when out isn't actually a PrintWriter, for example in a swank repl where it is a StringWriter.
I've created a patch for the reflection warnings, but can't submit it here because of political issues.
Converted from http://www.assembla.com/spaces/clojure/tickets/286
Attachments:
0001-fix-clojure.main-to-not-assume-that-err-is-a-PrintWr.patch - https://www.assembla.com/spaces/clojure/documents/cEQbXEuiar367beJe5d-aX/download/cEQbXEuiar367beJe5d-aX
0286-out-writer-and-better-pst.patch - https://www.assembla.com/spaces/clojure/documents/b4nAPA16Gr34ZzeJe5cbLA/download/b4nAPA16Gr34ZzeJe5cbLA