The GitHub Actions job "Fory CI" on fory.git/support_unsigned_types_for_java 
has failed.
Run started by GitHub user chaokunyang (triggered by chaokunyang).

Head commit for run:
32475105e8eb0fd07136b10cbff4cf821f7901eb / chaokunyang <[email protected]>
fix: push stub ref id when global ref tracking is enabled but field trackingRef 
is false

When global ref tracking is enabled, serializers call reference() at the end
of deserialization. If a field has trackingRef=false (e.g., in xlang mode where
all fields default to trackingRef=false), we need to push a stub -1 via
preserveRefId() so that reference() can pop it and skip setReadObject.

The fix checks if the TYPE normally needs ref tracking (ignoring field-level
metadata) by using TypeRef.of(typeRef.getRawType()). This ensures the stub is
pushed when needed, preventing ArrayIndexOutOfBoundsException when the 
serializer
calls reference() on an empty readRefIds stack.

Report URL: https://github.com/apache/fory/actions/runs/20879991031

With regards,
GitHub Actions via GitBox


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

Reply via email to