Changes between Version 139 and Version 140 of j2p
- Timestamp:
- 10/03/24 11:42:11 (4 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v139 v140 392 392 ||I get {{{Inner classes can not be translated}}}||Check the section on [wiki:j2p#Innerclasses inner classes]|| 393 393 ||I get something like {{{from com.X.Y.Z import Z: ModuleNotFoundError: No module named 'com'}}}. {{{com.X.Y.Z}}} is a java package that does not exist in python. ||You did not provide a library or code translate {{{com.X.Y.Z}}} and the translator now uses a "stub" translator that assumes the package on the python side is identical. To fix, you have to add a translator for the {{{com.X.Y.Z}}} package. Or avoid using the package in java|| 394 ||I get POSTFIX_INCREMENT: not supported and the same for POSTFIX_DECREMENT. Why is this not supported?||The general prefix- and postfix-increments are tricky, because they postpone the actual change of the variable. Especially when multiple of them are combined into a single statement. We recommend to manually unroll and use extra statements +=1 and -=1 before or after the statement.||394 ||I get POSTFIX_INCREMENT: not supported and the same for POSTFIX_DECREMENT. Why is this not supported?||The general prefix- and postfix-increments are tricky, because they postpone the actual change of the variable. In python multiple statements would have to be used. However this can also occur in situations where python does not allow such multiple statements. We recommend to manually unroll and use extra statements +=1 and -=1 before or after the statement. The general case may require more advanced refactoring.||