Oddity in type tag usage for primInvoke

Description

Some odd behavior demonstrated in Clojure 1.6.0 REPL below. Why does the (Math/abs (f2 -3)) call issue a reflection warning? It seems like perhaps it should not, given the other examples.

Cause: invokePrim path does not take into account var or form meta

Approach: apply var and form meta to invokePrim expression

Patch: clj-1533-2.patch

Screened by: Alex Miller

Environment

None

Attachments

2

Activity

Show:

Alex Miller May 4, 2015 at 2:52 PM

New patch is identical, just refreshed to apply to master

Nicola Mometto September 25, 2014 at 4:23 PM

Updated the patch with testcases for both issues, I agree that should be closed as duplicate

Alex Miller September 25, 2014 at 4:09 PM

Also needs tests in the patch.

Alex Miller September 25, 2014 at 4:09 PM

Can we include 1491 cases in this ticket and mark 1491 a duplicate?

Nicola Mometto September 25, 2014 at 3:58 PM

The root cause was also almost the same, the proposed patch is a superset of the one proposed for

Completed

Details

Assignee

Reporter

Approval

Patch

Priority

Affects versions

Fix versions

Created September 24, 2014 at 6:55 PM
Updated July 18, 2015 at 12:55 AM
Resolved July 18, 2015 at 12:55 AM