| 26 | |
| 27 | |
| 28 | The mechanism assumes a fixed mapping from java to python objects, as in the table below. This fixed mapping is needed to ensure the translator can be sure which objects will appear on the python side of the translation, so that proper actions can be taken to further the translation. |
| 29 | |
| 30 | ||java||python||remarks|| |
| 31 | ||int||int|| |
| 32 | ||float,Float,double,Double||float||in Java, float and double overflow at different places. Translation may fail if code depends on overflow behaviour|| |
| 33 | ||BigDecimal||Decimal|| |
| 34 | ||Map, HashMap||dict|| |
| 35 | ||Set||set|| |