From: Markus N. <mar...@gm...> - 2011-04-03 15:38:08
|
Hi Peter, I am one of the guys working on the wp7 branch, which is also a university project. The wp7 branch isn't stable enough by now but at some point in the future it will be merged with the trunk. @Generics: Generics were introduced in Java 1.5 and to be backwards compatible they're only checked at compile time and are not part of the byte code. xmlvm uses the byte code as a base and can therefore not detect generics. @Correct parameter names: I am not sure if this can be done by a patch. xmlvm uses the dx.jar to retrieve information about the bytecode structure of the class you are cross-compiling. The CstMethodRef class in there doesn't seem to provide a mechanism to get parameter names. However I am not sure if that means it can't be done as non-dex decompiler like jad seem to be able to retrieve parameter names. @C# enums: For a variety of different issues (instance of tests, ...) we need to rebuild the Java enum class (respectively cross-compile it from Apache Harmony which is what we're working on right now). However you can create a patch for yourself changing xmlvm2charp.xsl to do what you want. Regards, Markus On Sun, Apr 3, 2011 at 7:37 AM, Peter Grman <pet...@gr...> wrote: > Hi, > > > > I started a bachelor project where one of the tasks is to compile java > interfaces or value-object classes to c#. > > I found that XMLVM does the job pretty good but there are some more > features I’m missing and I’m not sure if they are provided or under > development or if I have to implement them by myself. In this case I would > be of course happy to share them afterwards with you. > > > > First, I found out, that only the wp7 branch has an option to create c# > code from .xmlvm files, is this still correct and why is this feature > missing in the XMLVM-trunk? > > > > And here the features I’m missing: > > · Support for generics > > · Using the correct names of the parameters > > · Generating c# enums instead of trying to rebuild the java enum > class, but this should be rather easy by just changing the xmlvm2csharp.xsl > > > > Thanks for your answers > > Cheers > > Peter > > > > Ps: if I would implement one or even all features by myself, what do I have > to do, to merge them into the repository??? > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |