definterface/gen-interface do not support array parameter and return types

Description

As describe in this clojure-dev post, gen-interface and definterface do not properly support array type hints.

Ultimately, this is because gen-class and gen-interface use two different code paths to do essentially the same thing. Boiled down, gen-class converts hints using (Type/getType (the-class c)), whereas gen-interface uses asm-type, which uses similar, but different, logic than the-class.

In my patch, I change asm-type to match use the-class. I also add entries to the prim->class map to support primitive arrays.

Environment

None

Attachments

1

Activity

Show:

Quetzaly Solano Gómez February 24, 2011 at 6:40 PM

An updated patch that includes tests for the new functionality.

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code

Priority

Affects versions

Fix versions

Created February 13, 2011 at 7:25 PM
Updated February 25, 2011 at 9:25 PM
Resolved February 25, 2011 at 9:25 PM