daml/language-support
Stefano Baghino 84c8be8181
Restrict Java codegen to types that can be seen over the Ledger API (#13571)
* Restrict Java codegen to types that can be seen over the Ledger API

Fixes #13324

Builds on top of refactorings part of #13372, #13439 and #13440,
alongside adding interface support to the transitive closure function
in #13557.

changelog_begin
[Java codegen] The Java codegen now restricts its output to Daml definitions
that are either directly or indirectly referred as part of a template or
interface (that is, only the types that can be seen over the Ledger API).
See #13324 for further details.
changelog_end

* Adapt tests to add template references for every type

* Address https://github.com/digital-asset/daml/pull/13440#discussion_r837318725

* Avoid invoking the recursion from two different places.

* Address https://github.com/digital-asset/daml/pull/13571#discussion_r848441581

* Address https://github.com/digital-asset/daml/pull/13571#discussion_r848442738

* Address https://github.com/digital-asset/daml/pull/13571#discussion_r848314960
2022-04-12 18:16:29 +02:00
..
codegen-common Add interface support to transitiveClosure (#13557) 2022-04-11 16:36:23 +00:00
codegen-main update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
hs/bindings Daml assitant support for Http metering endpoint [DPP-858] (#13157) 2022-03-10 11:33:09 +00:00
java Restrict Java codegen to types that can be seen over the Ledger API (#13571) 2022-04-12 18:16:29 +02:00
scala Cleanup unused classes related to pureconfig (#13559) 2022-04-11 21:00:31 +02:00
ts Address remaining issues about CVE-2021-44906 (#13382) 2022-03-23 11:06:31 +00:00