Skip to content

3.5.1 ToOneGetter error: wrong number of type arguments; required 2 #1115

@jrjohn

Description

@jrjohn

Describe the bug

ToOne annotation generator code error.
The following code works well on 3.4.0 but 3.5.0 and 3.5.1

Code

@Entity
public class Compliance
{
    @Id
    private long Id;

    public long getId() {
        return Id;
    }

    public void setId(long id) {
        Id = id;
    }

    public ToOne<Record> record;

    public ToOne<ComplianceRecord> complianceRecord;


    public Compliance()
    {

    }

}

The Errors:

Basic info (please complete the following information):

  • ObjectBox version [3.5.1]
  • Reproducibility: [always]
  • Device: [OnePlus 8T+ 5G]
  • OS: [Android 12]

Logs, stack traces
android/android/app/build/generated/ap_generated_sources/formalDebug/out/com/xxxx/model/entity/Compliance_.java:105: error: wrong number of type arguments; required 2
new RelationInfo<>(Compliance_._INSTANCE, Record.__INSTANCE, recordId, new ToOneGetter() {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions