google / google/flatbuffers

Incorrect Java code generation. uint8 generates int instead of byte

Open
#8,079 10 comments 1 reaction 0 assignees View on GitHub
java pr-requested
Dominant language
C++
Stars
26.5k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

Yes, java uses signed bytes making the value look wrong however, the data is more accurately represented by a byte in almost every usecase. If i was storing a buffer of bytes in there, I would have to convert the array to a byte array then read it. This is an extra step which is unnecessary

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.