Enum designer not showing negative values

Hi Team,

I’m creating an Enum with some negative values using the designer. After I entered the negative value, the enum immediately disappeared from the designer, and only positive values left.

image

Below is the code:

public enum FileStatusEnum implements EnumClass<Integer> {

    UNKNOWN_ERROR(-1),
    SIGN_ERROR(-2),
    NEW(0),
    PROCESSING(10),
    SIGNED(20);
...
}

Negative enumerations are useful when checking a set of values in SQL, for example, I can check if the file is error by using file_status < 0 with FileStatusEnum in above code.

My env:
Jmix version: 1.1.2
Jmix Studio plugin version: 1.2.NIGHTLY824-213
IntelliJ version: IntelliJ IDEA 2021.3.1 (Ultimate Edition)

Thanks

Hi @hanbing.yin

Thanks for the report, we created a ticket about it https://youtrack.jmix.io/issue/JST-2836

Regards,
Yulia

1 Like