This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 239e43b56c 🔄 synced local 'docs/specification/' with remote 
'docs/specification/'
239e43b56c is described below

commit 239e43b56cd76e861d92b85d0008ce02f9811f14
Author: chaokunyang <[email protected]>
AuthorDate: Wed May 27 00:33:30 2026 +0000

    🔄 synced local 'docs/specification/' with remote 'docs/specification/'
---
 docs/specification/java_serialization_spec.md | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/docs/specification/java_serialization_spec.md 
b/docs/specification/java_serialization_spec.md
index d0a7e18a06..6ca5f9a7d5 100644
--- a/docs/specification/java_serialization_spec.md
+++ b/docs/specification/java_serialization_spec.md
@@ -576,11 +576,15 @@ without a `chunk_size` byte:
 - non-null key and null value: special null-value header, then key payload.
 - null key and null value: `KV_NULL` header only.
 
-`EnumMap` writes one serializer-owned payload mode byte before its normal map
-payload:
+`EnumMap` writes its entry count, key enum class metadata, and then its normal
+map entry payload:
+
+```text
+| varuint32_small7 size | key enum class metadata | chunk... |
+```
 
-- `0`: normal payload follows.
-- `1`: Java-serialized empty `EnumMap` payload.
+The key enum class metadata is present even when `size` is zero so an empty
+`EnumMap` can be reconstructed with the original key type.
 
 ### Map Subclasses
 


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

Reply via email to