Open charlymix opened 1 year ago
导出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; } }
此处可能是导出代码的 bug,可以先根据编译报错提示,手动修复该问题
导出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; } }