Changes between Version 57 and Version 58 of j2p


Ignore:
Timestamp:
12/18/23 13:48:46 (11 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v57 v58  
    8787There 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.
    8888
     89===== Auto Boxing
     90Autoboxing 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
     92The 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{{{
     95int n=1;
     96return "number "+ n;
     97}}}
     98
     99You will have to call an explicit converter, typically toString(), on the arguments that need to be converted into the proper argument type.
     100
    89101==== More notes:
    90102* some classes like {{{Arrays}}} or {{{Override}}} do not have a direct python equivalent. calls to static functions in these classes can still be translated.