Changes between Version 57 and Version 58 of j2p
- Timestamp:
- 12/18/23 13:48:46 (11 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v57 v58 87 87 There are a very few exceptions. If some particular inner classes, particularly constants, are used in very specific translators, these translators may opt to attempt to recognise these and process them separately. One example is the JsonDeserializer (jackson-t package) that recognises use of "com.fasterxml.jackson.databind.JsonDeserializer.None". Check the documentation of the translators for details. 88 88 89 ===== Auto Boxing 90 Autoboxing is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper classes. For example, converting an int to an Integer, a double to a Double, and so on. If the conversion goes the other way, this is called unboxing. 91 92 The translator currently does not support auto boxing. That means you will get an error on the python side if you for instance do this on the java side 93 94 {{{ 95 int n=1; 96 return "number "+ n; 97 }}} 98 99 You will have to call an explicit converter, typically toString(), on the arguments that need to be converted into the proper argument type. 100 89 101 ==== More notes: 90 102 * some classes like {{{Arrays}}} or {{{Override}}} do not have a direct python equivalent. calls to static functions in these classes can still be translated.