Re: Using MonoLinker on ikvmc generated assembly

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

I think that most of the reflection problems come from the Java code, not the IKVM runtime itself.

I've been thinking about this and currently my best direction for solving this would be to have a modified runtime that logs all reflection usage and a tool to post process the log into an xml file for the linker.

I haven't had time to actually try this though.

It also wouldn't get you all the way there, because some reflection is based on environmental factors (e.g. the current culture), but I'm guessing these are limited and can be handled manually (i.e. hard coded in the tool).

Regards,
Jeroen

> -----Original Message-----
> From: Marius Ungureanu [mailto:[email protected]]
> Sent: Monday, March 31, 2014 15:23
> To: [email protected]
> Subject: [Ikvm-developers] Using MonoLinker on ikvmc generated assembly
> 
> Hey guys!
> 
> I'm attempting to use MonoLinker on a jar that I generated to a dll.
> The problem is, they're stripped out when I use '-a' which does static
> checking for used types.
> 
> I'm wondering if there is a pattern to the dynamically loaded classes
> and their classloaders so I can add them to an xml file which will force
> monolinker to keep them. Or if this data is kept anywhere, such as
> Attributes.
> 
> Thanks!
> Marius
> 
> ------------------------------------------------------------------------
> ------
> _______________________________________________
> 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.