Reflection on Java Generics #1265
Unanswered
michaschulze
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I did the following in the rhino shell (rhino version 1.7.14):
js> var o=new java.lang.String()
js> for (i in o) print(i)
getClass
toCharArray
wait
codePointAt
[ ... several others]
js>
which does exactly what I expect, showing me the available properties aka methods in this case. However if I do the same call for a Java Generics class as follows:
js> var o=new java.util.ArrayList()
js> for (i in o) print(i)
js>
nothing is printed. I know in earlier versions e.g. 1.7R4 this was working also for generics. What can I or have I to do in order to get the available publicly callable methods for generics in rhino-1.7.14?
Beta Was this translation helpful? Give feedback.
All reactions