Ethereum web3j-带字符串参数的事件的TypeReference

Ethereum web3j-带字符串参数的事件的TypeReference,ethereum,solidity,web3-java,Ethereum,Solidity,Web3 Java,假设我的Solidity智能合约中有以下事件: 事件购买(买家地址,字符串itemName) 我试图在web3jJava库中构造相应的事件。这就是我所做的: 公共静态最终事件购买=新事件( “买”,数组。 Bound mismatch: The type String is not a valid substitute for the bounded parameter <T extends Type> of the type TypeReference<T>

假设我的Solidity智能合约中有以下事件:

事件购买(买家地址,字符串itemName)

我试图在web3jJava库中构造相应的事件。这就是我所做的:

公共静态最终事件购买=新事件(
“买”,数组。
Bound mismatch: The type String is not a valid substitute for the bounded parameter <T extends Type> of the type TypeReference<T>