AliRana30 commented on PR #806: URL: https://github.com/apache/wayang/pull/806#issuecomment-6390569178
@novatechflow Replaced the value-comparison heuristic with explicit property tracking in `MapBasedKeyValueProvider`: - **Explicit vs. Cached Tracking:** `MapBasedKeyValueProvider` now tracks explicitly set keys (`provideExplicitLocally`), separating them from entries populated via parent delegation caching (`processParentEntry`). - **Resolver Semantics:** `TreeEncoder.resolveEncodeIds` inspects `provideExplicitLocally` at each level (child -> parent). On the same level, an explicit canonical property takes precedence over shorthand; cached parent values on the child never masquerade as explicit overrides or shadow subsequent parent updates. - **Regression Tests:** Added `MapBasedKeyValueProviderTest` and unit tests in `TreeEncoderTest` verifying the parent `false` + child canonical `false`/shorthand `true` resolution and parent mutations after cached child reads. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
