Java to Python Converter
Please read caveats below, seriously difficult bugs could be introduced when automatically converting code.
Please note:
- The goal is to get something close to translated, but not perfect.
- The Java code must be working, this assumes that it is a functioning and correct code.
- Semmantics are considered, for example s.substring is assumed to be using the substring method of string.
- Other assumptions like xx.length -> len(xx) are made.
- Some Java class use may remain, and you will need to find translations to Python.
- Single methods are handled by wrapping the method with a class, then this is removed.
- Several statements are made into a method similarly.
- This currently targets Jython 2.2 and Python 3.6.
- I am a Java developer who knows enough Python to cause problems, see GitHub project to provide feedback
Home