Skip to content

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

@charlymix

Description

@charlymix

导出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;
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions