tools.reader

Fix for parsing of tagged literals

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Patch:
    Code
  • Approval:
    Ok

Description

Parsing of tagged literals fails at the moment, e.g.

user> (require '[clojure.tools.reader :as r] :reload) (r/read-string "#java.lang.String[\"Hi\"]")
nil
ArrayIndexOutOfBoundsException 15 clojure.lang.RT.aget (RT.java:2239)

Attached patch corrects this problem, and brings the clojure logic in line with what's in LispReader.java

  1. 0001-Fix-for-ctor-reading.patch
    13/Sep/13 12:06 PM
    3 kB
    Alex Coventry
  2. reader.patch
    12/Sep/13 10:47 PM
    2 kB
    Alex Coventry

Activity

Alex Coventry made changes -
Field Original Value New Value
Attachment 0001-Fix-for-ctor-reading.patch [ 12260 ]
Nicola Mometto made changes -
Patch Code and Test [ 10002 ] Code [ 10001 ]
Resolution Completed [ 1 ]
Approval Ok [ 10007 ]
Status Open [ 1 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: