Just found another one:

You can't annotate constructors of gen-class.


2011/10/22 Ivan Koblik <ivankob...@gmail.com>:
> Hello Herwig,
> I checked the patch you linked to in your original post, and it doesn't seem
> that type hinting for native arrays of Objects is supported, that is the [L
> type.
Yes. It should be.

> Native arrays of native types work quite well.
> (definterface Name (^"[S" method [])) ;;returns array of shorts
> (def p (proxy [Name] []
>     (method [] (short-array [(short 10) (short 1)])))) ;;method returns
> short[2]
> (.method p) ;; returns #<short[] [S@1911540>
Interesting, I didn't actually check the runtime behavior. Decompiler
says, the emitted class names are bogus.
JVM probably doesn't cast on return, so it slips through. Have you
tried hinting an argument?

kind regards
-- 
__________________________________________________________________
Herwig Hochleitner

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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