Changes between Version 154 and Version 155 of j2p


Ignore:
Timestamp:
11/06/24 14:44:39 (3 weeks ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v154 v155  
    480480||Everything compiles fine but I get {{{ImportError: cannot import name ... from partially initialized module}}} when running in python ||Typically this happened if your java code has a cyclic reference: class A refers to B and class B refers to A. Python can not handle such cyclic references. We suggest using the {{{@Defer}}} annotation to help the translator, or to refactor the code.||
    481481||My java for loop seems to be translated to a weird looking while loop||That's correct. The java for loop is quite special, and you can use continue and break statements inside it that require us to do some tricks||
     482||I get UnsolvedSymbolException{context='null', name='We are unable to find the method declaration corresponding to ...||Sometimes the javaparser we use has a problem. Nothing we can do about that. For the moment you will have to manually translate problem spots to python with #PY.||