samples-java
samples-java copied to clipboard
Cannot find contract attachments for BoardConfigContractnull
The contracts:test of the snakes'n'ladders sample fails with this error:
Cannot find contract attachments for BoardConfigContractnull
It can be resolved by changing the ID in the contract from
public static String ID = "BoardConfigContract";
to
public static String ID = "net.corda.samples.snl.contracts.BoardConfigContract";
Actually you can even make it final.
I'm pretty sure that other samples are affected as well. The cordapp-template-java already uses the fully qualified ID, but many samples don't. I wonder why this issue hasn't been found earlier... has it been introduced with a minor JDK update? I'm using AdoptOpenJDK 1.8.0_292.