Re: [Ikvm-developers] providing .NET implementation for java classes
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2011-01-20 13:31:13
|
Hi Volker,
If you add the attribute to a type that type will not have a mangled name and if you add the attribute to the assembly all types in the assembly will not have mangled names.
Regards,
Jeroen
> -----Original Message-----
> From: Volker Berlin [mailto:VB...@in...]
> Sent: Thursday, January 20, 2011 1:01 PM
> To: ikv...@li...
> Subject: Re: [Ikvm-developers] providing .NET implementation for java
> classes
>
> Hi Jeroen,
>
> How can I use NoPackagePrefixAttribute? I can not find any helpful
> information.
>
> Regards,
> Volker
>
> -----Ursprüngliche Nachricht-----
> Von: Jeroen Frijters [mailto:je...@su...]
> Gesendet: Donnerstag, 20. Januar 2011 12:38
> An: harri koppel; ikv...@li...
> Betreff: Re: [Ikvm-developers] providing .NET implementation for java
> classes
>
> Hi Harri,
>
> The Java name of your class is mangled to
> "cli.ContentWrangler.Server.ApacheLogger" (unless you specify
> NoPackagePrefixAttribute). So try setting the
> "org.apache.commons.logging.Log" property to that.
>
> Regards,
> Jeroen
>
> > -----Original Message-----
> > From: harri koppel [mailto:har...@gm...]
> > Sent: Thursday, January 20, 2011 11:27 AM
> > To: ikv...@li...
> > Subject: [Ikvm-developers] providing .NET implementation for java
> > classes
> >
> >
> > Hello,
> >
> > I have crosscompiled several java packages for .NET and I can use them
> > from my .NET code.
> > I am trying to provide my own logger implementation for
> > org.apache.commons.logging.Log I have written a .NET class that
> > implements the interface and am trying to force-feed it in as follows:
> > //public class ApacheLogger : org.apache.commons.logging.Log
> > java.lang.System.setProperty("org.apache.commons.logging.Log",
> > "ContentWrangler.Server.ApacheLogger");
> >
> > Initialising an object that makes use of the said logger will however
> > throw an exception, deepest one of them is:
> > Message:
> > User-specified log class 'ContentWrangler.Server.ApacheLogger' cannot
> > be found or is not useable.
> > StackTrace:
> > at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(String
> > name)
> > at
> > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(String
> > name)
> > at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Class
> > clazz)
> > at org.apache.commons.logging.LogFactory.getLog(Class clazz)
> > at org.apache.fop.apps.FopFactory..cctor()
> > {"User-specified log class 'ContentWrangler.Server.ApacheLogger'
> > cannot be found or is not useable."}
> >
> > I am obviously missing something - does anyone spot what it is? Should
> > I create a java stub of the .NET class I want to use?
> >
> > Cheers,
> > Harri
> >
> > --
> > View this message in context: http://old.nabble.com/providing-.NET-
> > implementation-for-java-classes-tp30701642p30701642.html
> > Sent from the IKVM .NET - Dev mailing list archive at Nabble.com.
> >
> >
> > ----------------------------------------------------------------------
> > --
> > ------
> > Protect Your Site and Customers from Malware Attacks Learn about
> > various malware tactics and how to avoid them. Understand malware
> > threats, the impact they can have on your business, and how you can
> > protect your company and customers by using code signing.
> > http://p.sf.net/sfu/oracle-sfdevnl
> > _______________________________________________
> > Ikvm-developers mailing list
> > Ikv...@li...
> > https://lists.sourceforge.net/lists/listinfo/ikvm-developers
>
> ------------------------------------------------------------------------
> ------
> Protect Your Site and Customers from Malware Attacks Learn about various
> malware tactics and how to avoid them. Understand malware threats, the
> impact they can have on your business, and how you can protect your
> company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Ikvm-developers mailing list
> Ikv...@li...
> https://lists.sourceforge.net/lists/listinfo/ikvm-developers
> ------------------------------------------------------------------------
> ------
> Protect Your Site and Customers from Malware Attacks Learn about various
> malware tactics and how to avoid them. Understand malware threats, the
> impact they can have on your business, and how you can protect your
> company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Ikvm-developers mailing list
> Ikv...@li...
> https://lists.sourceforge.net/lists/listinfo/ikvm-developers
|