On Sunday 01 April 2007 17:39, Andrew John Hughes wrote:
> Hi all,
>
> I'm getting an error with generic type reflection that I think may be due
> to JamVM's implementation. Unfortunately, cacao doesn't even get this far,
> so I can't compare. I'll try and test with some others if I can get them
> up-to-date enough.
>
> The error is:
>
> java.lang.TypeNotPresentException: type "java$util$Set" not found
> at
> gnu.java.lang.reflect.ParameterizedTypeImpl.resolve(GenericSignatureParser.
>java:127) at gnu.java.lang.reflect.TypeImpl.resolve(TypeImpl.java:59)
> at gnu.java.lang.reflect.TypeImpl.resolve(TypeImpl.java:51)
> at
> gnu.java.lang.reflect.MethodSignatureParser.getGenericParameterTypes(Method
>SignatureParser.java:110) at
> java.lang.reflect.Method.getGenericParameterTypes(Method.java:431) at
> gnu.javax.management.Translator.fromJava(Translator.java:94) at
> javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationH
>andler.java:299) at $Proxy2.setAges(Unknown Source)
> at
> gnu.testlet.javax.management.MBeanServerInvocationHandler.MBeanProxy.test(M
>BeanProxy.java:121)
>
> which clearly seems erroneous. To replicate it, just run the Mauve test
> listed at the bottom or call getGenericParameterTypes on a Method which has
> a Set<X> as a parameter.
>
> Thanks,
Note that this is with JamVM 1.4.5 and current Classpath CVS.
--
Andrew :-)
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.htmlpublic class gcj extends Freedom implements Java { ... }
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general