Re: [Ikvm-developers] ikvmstub - parameter names not included in stubs
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2013-02-13 08:16:22
|
Hi Igor, Java class files do not have parameter names [1]. I'm not sure where Java IDEs get the parameter names from, but I assume Javadoc. There is an (unsupported) ikvmdoc tool that can generate Javadoc from .NET xml documentation: http://ikvm.cvs.sourceforge.net/viewvc/ikvm/ikvm/ikvmdoc/ Regards, Jeroen [1] For classes with debug information, non-abstract methods usually have the names in the local variable table. Java 8 will add (optional) support for storing parameter names in the class file. > -----Original Message----- > From: Igor Inas [mailto:igo...@gm...] > Sent: Tuesday, February 12, 2013 23:12 > To: ikv...@li... > Subject: [Ikvm-developers] ikvmstub - parameter names not included in > stubs > > Hello, > > I used ikvmstub to generate a jar from a .NET assembly. My problem is, > that generated class files don't contain names of parameters. > > An example of such method is: > void Clear(boolean b, boolean b1, boolean b2, boolean b3, boolean > b4, boolean b5, boolean b6, boolean b7); > > Visual Studio and other tools (JetBrains dotPeek or .NET Reflector) > show, that these parameters are named properly: > [MethodImpl(MethodImplOptions.InternalCall, > MethodCodeType=MethodCodeType.Runtime), DispId(0x43)] > void Clear([In] bool Geometry, [In] bool Construction, [In] bool > ToolPaths, [In] bool Dimensions, [In] bool Splines, [In] bool Surfaces, > [In] bool UserLayers, [In] bool Text); > > Is this a known feature of ikvmstub or did I do something wrong? > > > Additionally, let me express my appreciation for your work. IKVM is a > great project. > I am helping my friend with programming some VBA macros. I've been > developing in Java for past 8 years and it feels almost impossible to > jump back to a language like VBA. > However, I was able to create an interop .NET assembly, which allowed me > to do the same coding in C#. > And with IKVM I am able to do it in Java. And it runs! :) The only > outstanding feature would than be missing method parameter names. > > Thanks, > Igor > > ------------------------------------------------------------------------ > ------ > Free Next-Gen Firewall Hardware Offer > Buy your Sophos next-gen firewall before the end March 2013 and get the > hardware for free! Learn more. > http://p.sf.net/sfu/sophos-d2d-feb > _______________________________________________ > Ikvm-developers mailing list > Ikv...@li... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers |