Clojure

Error message for invalid map literals is not helpful

Details

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

Description

Literal maps with an odd number of forms give an IndexOutOfBounds exception, which is unhelpful and misleading in determining the source of the error. They should instead return a more specific error, something like "map literal must contain an even number of forms".

Activity

Hide
Luke VanderHart added a comment -

Patch submitted.

Show
Luke VanderHart added a comment - Patch submitted.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: