We have generated JAVA code from a DAR built using SDK 2.4
daml codegen java
However, all contracts have a compile error because toContractId method is not found on ContractCompanion.WithoutKey class.
Compile error below. Can you please advise?
java: cannot find symbol
** symbol: method toContractId(com.daml.ledger.javaapi.data.codegen.ContractId< deleted >)**
** location: variable COMPANION of type com.daml.ledger.javaapi.data.codegen.ContractCompanion.WithoutKey<deleted>**