Completed
Details
Assignee
Alex MillerAlex MillerReporter
importimportApproval
OkPatch
Code and TestPriority
MinorAffects versions
Fix versions
Details
Details
Assignee
Alex Miller
Alex MillerReporter
import
importApproval
Ok
Patch
Code and Test
Priority
Affects versions
Fix versions
Created September 2, 2012 at 1:19 AM
Updated October 25, 2013 at 10:03 PM
Resolved October 25, 2013 at 10:03 PM
The compiler accepts this erroneous form:
Analysis: defprotocol silently assoc's the last list of signatures found for any particular method name, without checking whether the method name was given earlier.
Patch: clj-1056-2.diff
Approach: Modify defprotocol to check whether each method name has already been encountered earlier, and throw an exception if so. The patch also updates the error message for the case of a protocol function with no args specified.
Behavior with patch clj-1056-2.txt:
Screened by: Stuart Halloway