• Baptiste Lepilleur's avatar
    Java: fix unsigned default value code generation and add 'L' suffix for long default value (#4051) · 5b5fcbfc
    Baptiste Lepilleur authored
    * Java: emit "signed" equivalent of unsigned default value in generated code and add "L" suffix to long default value.
    
    * Updated generated code
    
    * Only convert ulong to "signed" equivalent. ubyte and ushort don't need specific handling as "user facing" type is int. uint need 'L' suffix as "user facing" type is long.
    
    * Added missing cast to primitive type of default value which is in "user facing" type in builder.add<type>() calls.
    
    * Do not cast default value to actual type in C#.
    5b5fcbfc
Name
Last commit
Last update
CMake Loading commit data...
android Loading commit data...
biicode Loading commit data...
docs Loading commit data...
go Loading commit data...
grpc Loading commit data...
include/flatbuffers Loading commit data...
java/com/google/flatbuffers Loading commit data...
js Loading commit data...
net/FlatBuffers Loading commit data...
php Loading commit data...
python Loading commit data...
reflection Loading commit data...
samples Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
appveyor.yml Loading commit data...
biicode.conf Loading commit data...
composer.json Loading commit data...
pom.xml Loading commit data...
readme.md Loading commit data...