Re: Unable to cast object of type 'System.Reflection.RuntimeConstructorInfo' to type 'System.Reflection.Emit.MethodBuilder'

Jeroen Frijters <[email protected]>
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>
Hi Nickolay,



For 7.2 the same fix can be applied, but 7.4.5196.0 already has the fix.



Regards,

Jeroen



________________________________
From: Nickolay Dul <[email protected]>
Sent: Friday, June 20, 2014 6:21 PM
To: Jeroen Frijters; [email protected]
Subject: Unable to cast object of type 'System.Reflection.RuntimeConstructorInfo' to type 'System.Reflection.Emit.MethodBuilder'

Hi Jeroen,

sometimes we see the exception below (happens both for 7.2.4630.5 and 7.4.5196.0)

the similar issue described for 0.46.0.4
http://sourceforge.net/p/ikvm/mailman/message/31386112/

are these same issues?

can we use the same fix (for ResolveMethod()) to handle it?


java.lang.ClassCastException: Unable to cast object of type 'System.Reflection.RuntimeConstructorInfo' to type 'System.Reflection.Emit.MethodBuilder'.
      at IKVM.Internal.MethodWrapper.ResolveMethod(Unknown Source)
      at IKVM.NativeCode.sun.reflect.ReflectionFactory+FastConstructorAccessorImpl<init>(Unknown Source)
      at sun.reflect.ReflectionFactory.newConstructorAccessor0(Native Method)
      at sun.reflect.ReflectionFactory.newConstructorAccessor(ReflectionFactory.java:141)
      at java.lang.reflect.Constructor.acquireConstructorAccessor(Constructor.java:565)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:522)
      at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:614)
      at sun.reflect.annotation.AnnotationParser.annotationForMap(AnnotationParserjava:258)
      at IKVM.NativeCode.java.lang.Class.FreezeOrWrapAttribute(Unknown Source)
      at IKVM.NativeCode.java.lang.Class.AnnotationsToMap(Unknown Source)
      at java.lang.reflect.Field.declaredAnnotations(Field.java:1054)
      at java.lang.reflect.Field.getAnnotation(Field.java:1036)
      at java.lang.reflect.AccessibleObject.isAnnotationPresent(AccessibleObject.java:189)


Best Regards,
Nick

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems

_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.