Clojure

extend/implement parameterized types (generics)

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Release 1.5
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Patch:
    Code and Test

Description

When extending parameterized types, class files can track the original signatures of the superclass and super interfaces so that the original types can be obtained at run time. This runtime reflection is used in some Java frameworks, and implementing it in Clojure can enable interop. See http://groups.google.com/group/clojure/browse_thread/thread/5efd692804df3f47/1336e591c2eedfa1 for examples of this request.

This proposal checks the :parameters keyword in type meta information. If a parameter is found, it is added to the class signature.

Activity

Jim Blomo made changes -
Field Original Value New Value
Attachment extend-implement-parameterized-types.diff [ 11049 ]
Jim Blomo made changes -
Affects Version/s Release 1.3 [ 10038 ]
Affects Version/s Release 1.5 [ 10150 ]
Fix Version/s Release 1.5 [ 10150 ]
Jim Blomo made changes -
Attachment clojure-parameterized-generics.diff [ 11033 ]
Andy Fingerhut made changes -
Jim Blomo made changes -
Assignee Jim Blomo [ jim.blomo ]
Stuart Halloway made changes -
Fix Version/s Release 1.5 [ 10150 ]
Alex Miller made changes -
Labels interop

People

Vote (1)
Watch (4)

Dates

  • Created:
    Updated: