Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

读取方法出错误: 此处不允许使用修饰符static #865

Open
charlymix opened this issue Aug 17, 2023 · 1 comment
Open

读取方法出错误: 此处不允许使用修饰符static #865

charlymix opened this issue Aug 17, 2023 · 1 comment

Comments

@charlymix
Copy link

导出java项目后,编译出错,这个ProductInfo把由ProductRegister写入的数据读取出来,其它的bo没问题,只有这个有问题。
错误: 此处不允许使用修饰符static
public static class ProductInfo extends DynamicStruct {
public String name;

public String origin;

public BigInteger productionDate;

public ProductInfo(Utf8String name, Utf8String origin, Uint256 productionDate) {
super(name,origin,productionDate);
this.name = name.getValue();
this.origin = origin.getValue();
this.productionDate = productionDate.getValue();
}

public ProductInfo(String name, String origin, BigInteger productionDate) {
super(new org.fisco.bcos.sdk.v3.codec.datatypes.Utf8String(name),new org.fisco.bcos.sdk.v3.codec.datatypes.Utf8String(origin),new org.fisco.bcos.sdk.v3.codec.datatypes.generated.Uint256(productionDate));
this.name = name;
this.origin = origin;
this.productionDate = productionDate;
}
}

@CodingCattwo
Copy link
Contributor

此处可能是导出代码的 bug,可以先根据编译报错提示,手动修复该问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants