As an interim solution, you could write a wrapper class in Java that
extends the parameterized class, then extend that class in Clojure.
-Stuart

On Mar 31, 11:23 am, Chas Emerick <cemer...@snowtide.com> wrote:
> gen-class does not yet support parameterized types.  Rich is aware of  
> the issue, though, and I suspect he'll wend his way around to it  
> sooner rather than later.  Depending on timing, I might try my hand at  
> a patch that implements this.
>
> - Chas
>
> On Mar 30, 2009, at 2:27 PM, Greg Harman wrote:
>
>
>
> > I need to extend an abstract Java class with a generic type, ala:
>
> > public abstract class Foo<T> {}
>
> > I tried the syntax (gen-class :name fooImpl :extends com.x.Foo<T>) and
> > get
>
> > java.lang.ClassNotFoundException: com.x.Foo<T>
>
> > Without the <T> I'd get: a RuntimeException complaining that I'm
> > extending the raw type instead of the parameterized type.
>
> > Any suggestions?
>
> > thanks,
> > Greg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to