[Java] Fix key lookup returning null clashing with default value (#7236)

A field with key attribute must always be written on the message so it
can be looked up by key. There is a edge case where inserting a key
field with same value as default would prevent it to be written on
the message and later cannot be found when searched by key.
9 files changed
tree: 815011f1dace802e7939ca9f7a2066e8f289ec96
  1. .bazelci/
  2. .github/
  3. .travis/
  4. android/
  5. bazel/
  6. benchmarks/
  7. CMake/
  8. conan/
  9. dart/
  10. docs/
  11. go/
  12. grpc/
  13. include/
  14. java/
  15. js/
  16. kotlin/
  17. lobster/
  18. lua/
  19. mjs/
  20. net/
  21. php/
  22. python/
  23. reflection/
  24. rust/
  25. samples/
  26. scripts/
  27. snap/
  28. src/
  29. swift/
  30. tests/
  31. ts/
  32. .clang-format
  33. .editorconfig
  34. .eslintrc.js
  35. .gitattributes
  36. .gitignore
  37. .travis.yml
  38. BUILD.bazel
  39. build_defs.bzl
  40. CMakeLists.txt
  41. composer.json
  42. conanfile.py
  43. CONTRIBUTING.md
  44. Formatters.md
  45. LICENSE.txt
  46. package.json
  47. pom.xml
  48. readme.md
  49. SECURITY.md
  50. swift.swiftformat
  51. tsconfig.json
  52. tsconfig.mjs.json
  53. typescript.bzl
  54. WORKSPACE
  55. yarn.lock
readme.md

logo FlatBuffers

Build status Fuzzing Status Join the chat at https://gitter.im/google/flatbuffers Discord Chat Twitter Follow Twitter Follow

FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.

Go to our landing page to browse our documentation.

Supported operating systems

  • Windows
  • MacOS X
  • Linux
  • Android
  • And any others with a recent C++ compiler.

Supported programming languages

  • C++
  • C#
  • C
  • Dart
  • Go
  • Java
  • JavaScript
  • Lobster
  • Lua
  • PHP
  • Python
  • Rust
  • TypeScript

and more in progress...

Contribution

To contribute to this project, see CONTRIBUTING.

Security

Please see our Security Policy for reporting vulnerabilities.

Licensing

Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.