java2python icon indicating copy to clipboard operation
java2python copied to clipboard

Couple of issues

Open maksym3d opened this issue 9 years ago • 0 comments

I was trying to convert some old Java class to python using your utility and for the most part it worked awesome!

However, these were a couple of issues:

  1. Conversion lost some lines of code along with most of the comments. For example, see assignment to the 'name' variable in the constructor. This made me go and compare every single line just to make I have not lost anything. This is probably my main issue with tool.
  2. Some of the member functions got the 'self' pointer, while others for some reason got 'cls'. Not sure why, but this was completely unnecessary.
  3. The tool did not prepend the calls to member functions with .self.
  4. For loops got replaced with 'while'.

My Java file

Output Python file

Thanks very much for your efforts!

Maksym

maksym3d avatar Sep 20 '16 18:09 maksym3d