"The enum constant reference cannot be qualified in a case label" is an error message you may encounter while using Java enum values against a switch statement. I assume you are aware Java allows "
enums" to be used in switch statements other than convertible
int values.
In Short
When a Java switch statement uses an enum parameter; qualified names of the enum values should not be used in case labels, but only the unqualified names; then switch statement will consider all the labels are referring to the enum type that is used as the parameter.
Read more �
0 Response to "[Java] The enum constant reference cannot be qualified in a case label of switch statement"
Post a Comment