chaokunyang opened a new issue, #3246:
URL: https://github.com/apache/fory/issues/3246

   ### Feature Request
   
   Generate IntXXXList/UintXXXList field for collection type in java
   
   ### Is your feature request related to a problem? Please describe
   
   
   Currently fory compiler generate `byte/short/int/long[]` field with 
annotation(Int8Array/../Uint64Array)  for message/union field in 
fdl/protobuf/flatbuffer idl.
   
   The API is not consistent with other `repeated type`.
   
   
   ### Describe the solution you'd like
   
   
   Refactor it to keep two generate mode:
   1. generate 
Int8List/Int16List/Int32List/Int64List/Uint8List/Uint16List//Uint32List/Uint64List
 as field instead. (default mode)
   2. keep curernt behaviour: generate `byte/short/int/long[]` field with 
annotation(Int8Array/../Uint64Array)
   
   the mode can be controlled by a field option: `use_java_array=false/true`, 
by default it's false
   
   Then update fory java serialization runtime to support 
`Int8List/Int16List/Int32List/Int64List/Uint8List/Uint16List//Uint32List/Uint64List`
 as field
   
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   #3099 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to