Clojure

*out* being used as java.io.PrintWriter

Details

  • Type: Defect Defect
  • Status: Closed 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.

Activity

No changes have yet been made on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Anonymous
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: