Sharpen, an Open Source Java to C# converter 3
Today folks at db4o released Sharpen, an open source Java to C# converter.
Am happy to see this coming, as it is soming I’ve pushed strongly for when I was working at db4objects, and was hacking on it, mentored by its main developer, Rodrigo. There I had the chance to improve the generated code, to make it look like hand written code, that follows .net conventions.
It’s nothing magic, and requires compromises on both the Java and the generated C#, but it’s pretty handy, easily hackable, and all in all, damn useful.
Rodrigo wrote a nice tutorial on Sharpen.
Time to port your Java applications to the amazing Mono!
Trackbacks
Use the following link to trackback from your own site:
http://evain.net/blog/articles/trackback/487


How is that different from IKVM?
It converts Java code (text) to C# code (text).
I don’t see any valid reason to convert Java to C#. I did this at one of my jobs (using the converter in Visual studio) and it was a waste of time. We ended up with a messier code base that did exactly the same thing as the Java version. On top of that, it took around 3 weeks to fix the 1000+ compiler errors from the initial conversion.
Then it took weeks more to actually get the app to run the same as the Java version.
Now, can we get ONE MORE post on dzone? I already see 3 about this in 2 days, all saying about the same thing.
Maybe people should consider something like this:
https://net2java.dev.java.net/
or
http://dev.mainsoft.com/
Mike