Re: [Ikvm-developers] Changing the external signature of a Java class?
Brought to you by:
jfrijters
|
From: Matthew M. <ma...@ac...> - 2004-03-24 17:43:25
|
Jeroen Frijters wrote: > It would be possible, but I'm skeptical of the benefits of such an > approach. While the API would superficially look a little more like a > .NET API, it still wouldn't be (e.g. the disposable types wouldn't > implement IDisposable). You would also have to rewrite/convert all the > API documentation. > > Also, I don't really want to add non-crucial functionality to the core. > If you really wanted to pursue this avenue, a possibility would be to > actually modify the .NET assembly in a post-processing step. For > example, ildasm the assembly, do some text processing and ilasm it > again. Or alternatively, use a managed PE reading/writing library such > as PEAPI to post-process the assembly. Fair enough - I was hoping that there might be a quick way to re-use the mapping stuff in IKVM, but it shouldn't be too bad to change the signature. I might be able to come up with a solution using attributes on stub classes for the prototypes and mapping, but I'll need to investigate more. Thanks for the note, Matt. |