Clojure

GC Issue 39: Reader metadata fails for empty collection literals

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Reported by chouser, Jan 09, 2009
What (small set of) steps will reproduce the problem?

Originally reported by Tomasz Skutnik.

user=> (meta #^{:some :metadata} [])
nil
user=> (meta #^{:some :metadata} ())
nil
user=> (meta #^{:some :metadata} {})
nil

What is the expected output? What do you see instead?

I expect to see metadata {:some :metadata} as I do in these cases:

user=> (meta #^{:some :metadata} [1])
{:some :metadata}
user=> (meta '#^{:some :metadata} (1))
{:some :metadata}
user=> (meta #^{:some :metadata} {:a 1})
{:some :metadata}
user=> (meta (with-meta [] {:some :metadata}))
{:some :metadata}
user=> (meta (with-meta () {:some :metadata}))
{:some :metadata}
user=> (meta (with-meta {} {:some :metadata}))
{:some :metadata}

What version are you using?

SVN 1205

Was this discussed on the group? If so, please provide a link to the
discussion:

http://groups.google.com/group/clojure/msg/686e161b780565e0

Please provide any additional information below.

Comment 1 by richhickey, Jan 14, 2009
fixed in svn 1213 - thanks for the report
Status: Fixed

Activity

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - Converted from http://www.assembla.com/spaces/clojure/tickets/43

People

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

Dates

  • Created:
    Updated:
    Resolved: