Clojure

Varargs protococol impls can be defined but not called

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Declined
  • Affects Version/s: Release 1.4
  • Fix Version/s: Release 1.5
  • Component/s: None
  • Labels:
  • Patch:
    Code

Description

The compiler accepts this:

(deftype foo []
clojure.lang.IFn
(invoke [this & xs]))

However calling ((foo.) :bar) will throw an AbstractMethodError. Wouldn't some checking be desirable?

Activity

Tassilo Horn made changes -
Field Original Value New Value
Attachment 0001-CLJ-1024-Check-for-invalid-varags-destrucuring-uses.patch [ 11376 ]
Tassilo Horn made changes -
Labels patch
Tassilo Horn made changes -
Attachment 0001-CLJ-1024-Check-for-invalid-varags-destrucuring-uses.patch [ 11377 ]
Tassilo Horn made changes -
Attachment 0001-CLJ-1024-Check-for-invalid-varags-destrucuring-uses.patch [ 11376 ]
Tassilo Horn made changes -
Attachment 0001-CLJ-1024-Check-for-invalid-varags-destrucuring-uses.patch [ 11380 ]
Tassilo Horn made changes -
Attachment 0001-CLJ-1024-Check-for-invalid-varags-destrucuring-uses.patch [ 11377 ]
Rich Hickey made changes -
Patch Code [ 10001 ]
Approval Vetted [ 10003 ]
Fix Version/s Release 1.5 [ 10150 ]
Aaron Bedra made changes -
Approval Vetted [ 10003 ] Incomplete [ 10006 ]
Tassilo Horn made changes -
Attachment 0001-CLJ-1024-Check-for-invalid-varags-destrucuring-uses.patch [ 11462 ]
Tassilo Horn made changes -
Attachment 0001-CLJ-1024-Check-for-invalid-varags-destrucuring-uses.patch [ 11380 ]
Tassilo Horn made changes -
Tassilo Horn made changes -
Attachment 0001-CLJ-1024-Check-for-invalid-varags-destrucuring-uses.patch [ 11462 ]
Stuart Halloway made changes -
Approval Incomplete [ 10006 ] Screened [ 10004 ]
Rich Hickey made changes -
Approval Screened [ 10004 ] Ok [ 10007 ]
Stuart Halloway made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]
Stuart Halloway made changes -
Assignee Stuart Halloway [ stu ]
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Completed [ 1 ]
Stuart Halloway made changes -
Approval Ok [ 10007 ] Not Approved [ 10008 ]
Issue Type Defect [ 1 ] Enhancement [ 4 ]
Stuart Halloway made changes -
Resolution Declined [ 2 ]
Status Reopened [ 4 ] Closed [ 6 ]

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: