Incorrect result from getGenericParameterTypes() for method newInstance0 in Class
Brought to you by:
jfrijters
The following code:
Class.class.getDeclaredMethod("newInstance0", new java.lang.Class[0]).getGenericParameterTypes()[0]
returns ikvm.internal.CallerID
, whereas getParameterTypes()
and getParameterAnnotations()
return empty arrays.
This causes an exception when trying to use Groovy (from version 2.1.8 and newer) with IKVM.
Thanks for reporting this. This bug is indeed in 7.2 and earlier but was fixed in 7.4.
Sorry about that. The download page offers 7.2.4630.5 as the latest version, so that's the one I downloaded. I didn't realize there was a newer version.
Is building from source the only way to get 7.4?
The 7.4 and 8.0 binaries are available here:
http://weblog.ikvm.net/2014/03/24/IKVMNET74ReleaseCandidate0.aspx
http://weblog.ikvm.net/2015/01/12/IKVMNET80ReleaseCandidate1.aspx