-
Enhancement
-
Resolution: Obsolete
-
Major
-
None
-
None
-
None
-
None
When I try to upgrade infinispan-core from 9.X to 10.X. The following code breaks.
import org.infinispan.health.ClusterHealth; public class Demo { private ClusterHealth clusterHealth; public void test() { switch (clusterHealth.getHealthStatus()) { case HEALTHY: // do sth case REBALANCING: // do sth case UNHEALTHY: // do sth } } }
The code should pass, but it throws an error:
[ERROR] /Demo.java:[14,14] an enum switch case label must be the unqualified name of an enumeration constant [ERROR] /Demo.java:[16,14] an enum switch case label must be the unqualified name of an enumeration constant