Skip to content

Commit 594daad

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
fix(codegen): disambiguate duplicate param names in union-signature proxies
When multiple API versions contribute params with the same name to a union signature (e.g., attributionSource from API 35 and API 36), the generated Go code previously emitted duplicate parameter names, causing compilation errors. Add disambiguateParams() that detects name collisions and appends API-level suffixes: _untilAPINN for params with MaxAPILevel, _sinceAPINN for params with MinAPILevel, and _paramN as a positional fallback. Apply this in all code paths: interface types, proxy method signatures, parcel serialization, stub deserialization, and server wrappers. Also regenerate bluetooth bindings, CLI commands, and update examples to match the new signatures.
1 parent 71fbd88 commit 594daad

File tree

12 files changed

+3278
-1272
lines changed

12 files changed

+3278
-1272
lines changed

android/bluetooth/ibluetooth.go

Lines changed: 148 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)