[
https://issues.apache.org/jira/browse/THRIFT-6264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer resolved THRIFT-6264.
--------------------------------
Fix Version/s: 0.25.0
Assignee: Jens Geyer
Resolution: Fixed
> Dart: TProtocol.incrementRecursionDepth and decrementRecursionDepth are never
> called
> ------------------------------------------------------------------------------------
>
> Key: THRIFT-6264
> URL: https://issues.apache.org/jira/browse/THRIFT-6264
> Project: Thrift
> Issue Type: Bug
> Components: Dart - Library
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Priority: Minor
> Fix For: 0.25.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {{lib/dart/lib/src/protocol/t_protocol.dart}} defines the pair that is meant
> to bound how deep a decoder will follow a nested message:
> * {{incrementRecursionDepth()}} -- {{:38}}
> * {{decrementRecursionDepth()}} -- {{:46}}
> Neither has a call site anywhere in {{lib/dart}}. The recursion bound in the
> binding is applied elsewhere, so the two methods are dead code that reads as
> though the mechanism were wired up.
> h2. Suggested
> Either call them from the places that descend into a nested value, the way
> the other bindings do with their equivalents, or remove them so the class
> does not advertise a mechanism it does not use. Whichever way, the depth
> handling in the binding should have one implementation, not two.
> _Drafted with AI assistance (Claude Opus 5); reviewed and filed by Jens
> Geyer._
--
This message was sent by Atlassian Jira
(v8.20.10#820010)