Skip to content

Custom function with entity property of same name fails in version 2.3.4 #720

@ghost

Description

Issue Basics

  • ObjectBox version 2.3.4
  • Reproducibility: always

Reproducing the bug

In an entity I have a property,

private Integer isVerified = 0;

with the following getter and setter and custom method of the same name

public Integer getIsVerified() {
    return isVerified;
}

public Boolean isVerified() {
    return isVerified == 1;
}

public void setIsVerified(Integer isVerified) {
    this.isVerified = isVerified;
}

Before the latest version 2.3.4 I have no problem with this code but in the latest I get this error;

error: incompatible types: Boolean cannot be converted to Integer

If I remove the IsVerified() function it works but I want to know how to still use it in the latest version

Cheers

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions