C++ to java convertor

Oct 21, 2010 at 7:07am
Hi,
Is there any tool available for conversion of C/C++ source to java equivalent. We are looking a tool which is good as per industrial point of view.
Oct 21, 2010 at 7:38am
Well there is no operator overloading in Java so maybe its not possible.
Oct 21, 2010 at 8:57am
closed account (EzwRko23)

Well there is no operator overloading in Java so maybe its not possible.


BS.

Operator overloading is no big deal. Custom operators in C++ are just functions / methods.
They can be easily replaced. The bigger obstacle is crazy overcomplicated C++ syntax - the nightmare of designers of any C++ processing tools.


http://tangiblesoftwaresolutions.com/Product_Details/CPlusPlus_to_Java_Converter_Details.html
Last edited on Oct 21, 2010 at 9:05am
Oct 21, 2010 at 10:13am
Thanks,
Is this convertor used for industrial purpose?
I checked it's docs and found that there are lot of TO DO tasks in this tool.
Example :
bit fields are not allowed, operator overloading not avalibale etc.
For all these TO DO tasks it mentions :
"To Do tasks require your attention and will require you to make some adjustment:"

Oct 21, 2010 at 10:21am
closed account (EzwRko23)
I don't know. I doubt you find something really good. It is better to redesign and rewrite the code manually - then you can improve its quality by the way. Or if you only want to use it from Java - wrap it and call through JNI. I don't know what benefit would you gain by just automatically translating the code to Java. Even if this transition could be done, C++ style of code done in Java is already a bad idea.
Oct 21, 2010 at 10:37am
We need it as per our requirements from customer.
Thanks for the reply.
Oct 21, 2010 at 11:15am
What software are you converting?
Oct 22, 2010 at 2:21am
Damn - if I were paying someone to convert C/C++ code into Java, I'd expect them to do it by hand and not crank it through some convertor.

+1 xorebxebx comment
It is better to redesign and rewrite the code manually - then you can improve its quality by the way.


His other idea is also pretty good - as a customer, I would prefer that you do this, rather than feed it through some mechanical convertor:
Or if you only want to use it from Java - wrap it and call through JNI.


How many lines of C/C++ code are we talking about here?
Topic archived. No new replies allowed.