Namespace map syntax prevents duplicate key check

Description

Cause: In the namespace map reader, a map is built by repeated assoc rather than via createWithCheck. Thus, assoc of same key replaces prior key rather than throwing an error.

Approach: Build an array and invoke RT.map(a), to echo same code path without namespace map literal syntax.

After:

Patch: clj-2142-3.patch

Environment

None

Activity

Show:
Nicola Mometto
April 2, 2017, 6:06 PM

updated patch also fixes EdnReader

import
April 2, 2017, 7:23 PM

Comment made by: mobileink

wow, that was fast, Nicola!

Completed

Assignee

Unassigned

Reporter

import

Labels

Approval

Ok

Patch

Code and Test

Fix versions

Affects versions

Priority

Major
Configure