You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As optional keyword is not applicable to function arguments/response, Kitex will always generate non-pointer basic types, which makes it incompatible with Java methods defined with wrapper classes (such as Integer) as its arguments/response.
To improve the compatibility, we can define java wrapper classes in java.thrift and implement them as type aliases to the corresponding basic types in github.com/kitex-contrib/codec-dubbo/tree/main/java, which will be "recogonized" as struct types by Kitex and present in their pointer form in the generated code.
Before implemented, the quickest workaround is to add another method in the java server as an adaptor.
The text was updated successfully, but these errors were encountered:
As
optional
keyword is not applicable to function arguments/response, Kitex will always generate non-pointer basic types, which makes it incompatible with Java methods defined with wrapper classes (such as Integer) as its arguments/response.To improve the compatibility, we can define java wrapper classes in
java.thrift
and implement them as type aliases to the corresponding basic types ingithub.com/kitex-contrib/codec-dubbo/tree/main/java
, which will be "recogonized" as struct types by Kitex and present in their pointer form in the generated code.Before implemented, the quickest workaround is to add another method in the java server as an adaptor.
The text was updated successfully, but these errors were encountered: