Re: Possible Bug in IKVMs JNI-Code?

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

Yes, that makes sense. -opt:fields removes unused fields, but it obviously can't see usages via reflection or JNI.

Regards,
Jeroen

> -----Original Message-----
> From: Christian Prochnow [mailto:[email protected]]
> Sent: Thursday, September 18, 2014 12:29
> To: Jeroen Frijters; [email protected]
> Subject: AW: Possible Bug in IKVMs JNI-Code?
> 
> Hi Jeroen,
> 
> i finally got it to work. It had nothing todo with Obfuscation. The
> problem was related to the option "-opt:fields" that was passed to ikvmc
> when doing a releaser build.
> 
> If i pass the "-opt:fields" option to ikvmc, JNA initialization fails.
> Without this option everything works fine.
> 
> 
> Best regards,
> 
> Christian Prochnow
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Christian Prochnow
> Gesendet: Donnerstag, 11. September 2014 10:38
> An: 'Jeroen Frijters'; [email protected]
> Betreff: AW: Possible Bug in IKVMs JNI-Code?
> 
> Hi Jeroen,
> 
> thanks for your response. It now works, it had something todo with
> Obfuscation. Sorry to bother you with that.
> 
> 
> 
> Greetings,
> 
> Christian
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Jeroen Frijters [mailto:[email protected]]
> Gesendet: Montag, 8. September 2014 17:27
> An: Christian Prochnow; [email protected]
> Betreff: RE: Possible Bug in IKVMs JNI-Code?
> 
> Hi Christian,
> 
> I can't reproduce that with JNA 4.1.0 and the current IKVM cvs version.
> So you'll need to provide more information.
> 
> Regards,
> Jeroen
> 
> > -----Original Message-----
> > From: Christian Prochnow [mailto:[email protected]]
> > Sent: Monday, September 8, 2014 16:02
> > To: [email protected]
> > Subject: [Ikvm-developers] Possible Bug in IKVMs JNI-Code?
> >
> > Hi,
> >
> >
> >
> >
> >
> > we are using JNA to use some native DLLs via IKVM. While this worked
> > in older versions of IKVM (cant remember which one),
> >
> > it no longer works - could this be an issue in IKVMs JNI code ?
> >
> >
> >
> >
> >
> > An UnsatisfiedLinkError gets thrown by ..cctor of com.sun.jna.Native:
> >
> >
> >
> > Message: ffi_type_longdouble
> >
> > StackTrace:
> >
> >    bei IKVM.Runtime.JNI.Frame.Leave()
> >
> >    bei com.sun.jna.Native.initIDs()
> >
> >    bei com.sun.jna.Native..cctor()
> >
> >
> >
> >
> >
> > Do you have any ideas?
> >
> >
> >
> >
> >
> > Best regards,
> >
> >
> >
> > Christian Prochnow
> >
> >
> 
> 
> 
> 
> +----------------------------------------------------------------------+
> | Z1 SecureMail Gateway Info - http://www.zertificon.com               |
> +----------------------------------------------------------------------+
> | - Die Nachricht war weder verschluesselt noch digital unterschrieben |
> +----------------------------------------------------------------------+
> 
> 


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
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.