Skip to content

Use list protocol for ConditionalDirective.directiveLines in RPC#7081

Draft
knutwannheden wants to merge 1 commit intomainfrom
fix-rpc-conditional-directive-list
Draft

Use list protocol for ConditionalDirective.directiveLines in RPC#7081
knutwannheden wants to merge 1 commit intomainfrom
fix-rpc-conditional-directive-list

Conversation

@knutwannheden
Copy link
Contributor

Summary

  • ConditionalDirective.directiveLines was sent/received using a manual count+loop pattern instead of getAndSendList/receiveList
  • Same class of issue as C#: Use list protocol for ExceptionFilteredTry catch filters in RPC #7080 (ExceptionFilteredTry catch filters) — bypasses the list protocol's position-matching
  • Fixed all four implementations (Java sender/receiver, C# sender/receiver) to use lineNumber as the list element identity

Test plan

  • All existing CSharpRecipeTest tests pass

DirectiveLines were sent/received using a manual count+loop pattern
instead of the standard getAndSendList/receiveList protocol. This is
the same class of bug fixed for ExceptionFilteredTry catch filters —
while not currently broken (the count was sent explicitly), it
bypasses the list protocol's position-matching and is fragile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant