Clojure

Vec contains AbstractMethodError

Details

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

Description

user=> (def vi (into (vector-of :int) [1 2 3]))
#'user/vi
user=> (contains? vi 1)
java.lang.AbstractMethodError (NO_SOURCE_FILE:0)

Vec is does not implement the containsKey or entryAt methods of clojure.lang.Associative.

Activity

Hide
Assembla Importer added a comment -

dsg said: [file:bhz7jqukqr364ReJe5dVir]: Implements .containsKey and .entryAt methods for Vec, plus tests.

Show
Assembla Importer added a comment - dsg said: [file:bhz7jqukqr364ReJe5dVir]: Implements .containsKey and .entryAt methods for Vec, plus tests.
Hide
Assembla Importer added a comment -

dsg said: I added support and tests for both entryAt and containsKey, although I do not think entryAt is ever called.

This test code in this patch may conflict with #266. Once #266 is committed, I will check for this and resubmit if necessary.

Show
Assembla Importer added a comment - dsg said: I added support and tests for both entryAt and containsKey, although I do not think entryAt is ever called. This test code in this patch may conflict with #266. Once #266 is committed, I will check for this and resubmit if necessary.
Hide
Assembla Importer added a comment -

importer said: (In [[r:dc9429f5cb6a0d881bc0e4ee1ae030543bb72655]]) Add containsKey and entryAt support to Vec, plus tests. Fixes #314.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>

Branch: master

Show
Assembla Importer added a comment - importer said: (In [[r:dc9429f5cb6a0d881bc0e4ee1ae030543bb72655]]) Add containsKey and entryAt support to Vec, plus tests. Fixes #314. Signed-off-by: Stuart Halloway <stu@thinkrelevance.com> Branch: master

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: