daml/docs/source
Victor Peter Rouven Müller 91a6ad7f36
Add generation of FromInterfaceContractId methods for supporting templates in the java codegen (#13460)
* Add generation of FromInterfaceContractId methods for supporting templates in the java codegen

changelog_begin

- Add generation of `unsafeFrom{InterfaceName}` methods to the `ContractId` class for templates implementing interfaces in the Java codegen. That allows to convert between interface contract IDs and template contract IDs. If a conversion was wrong it will raise an exception at runtime during the execution of a command. The conversion is thus not exception-safe.

changelog_end

* Update language-support/java/codegen/src/ledger-tests/scala/com/digitalasset/InterfacesTest.scala

Co-authored-by: Stephen Compall <stephen.compall@daml.com>

* Fix missing import

* Address https://github.com/digital-asset/daml/pull/13460#discussion_r838522450

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
Co-authored-by: Stephen Compall <stephen.compall@daml.com>
Co-authored-by: Stefano Baghino <stefano.baghino@digitalasset.com>
2022-04-11 08:49:12 +00:00
..
app-dev Add generation of FromInterfaceContractId methods for supporting templates in the java codegen (#13460) 2022-04-11 08:49:12 +00:00
concepts Removed two links (#13092) 2022-02-25 16:05:10 +00:00
daml Update interface ref docs to clarify that {pre,post}consuming qualifiers are not supported (#13523) 2022-04-07 14:35:43 +02:00
daml-repl Remove references to pre-canton sandbox from documentation (#12888) 2022-02-11 13:57:44 +01:00
daml-script [Docs] Expand User Management service section (and remove a duplicate section) [DPP-943] (#13108) 2022-03-02 18:59:40 +01:00
deploy Update ledger overview list (#13030) 2022-02-23 16:03:23 -05:00
getting-started Enterprise v open source table (#13459) 2022-03-31 11:17:22 +01:00
json-api docs: fix canton ref (#13482) 2022-03-31 14:29:39 +00:00
ops Metering cleanup [DPP-937] (#13210) 2022-03-09 19:06:04 +00:00
support Removed two links (#13092) 2022-02-25 16:05:10 +00:00
tools Clarify the correlation between mTLS client cert and application id. (#13496) 2022-04-06 12:25:41 +02:00
triggers Make gsg-trigger docs work with Canton (#12709) 2022-02-03 15:22:45 +01:00
upgrade Switch docs for upgrade automation to Canton Sandbox (#12908) 2022-02-14 14:08:32 +00:00
building-applications.rst Updating the TOC index pages (#13528) 2022-04-08 16:07:03 -04:00
deploying.rst Update ledger overview list (#13030) 2022-02-23 16:03:23 -05:00
index.rst Participant metering documentation (#13070) 2022-02-25 10:59:20 +00:00
operating-daml.rst TOC index pages (#13468) 2022-03-31 11:12:58 -04:00
tools.rst Add new toctrees in daml docs (#12880) 2022-02-15 07:34:29 +00:00
writing-daml.rst Updating the TOC index pages (#13528) 2022-04-08 16:07:03 -04:00