[infinispan-issues] [JBoss JIRA] (ISPN-11186) Updating from 9.X to 10.X breaks

Lingchao Chen (Jira) issues at jboss.org
Sun Jan 19 22:15:13 EST 2020


Lingchao Chen created ISPN-11186:
------------------------------------

             Summary: Updating from 9.X to 10.X breaks
                 Key: ISPN-11186
                 URL: https://issues.redhat.com/browse/ISPN-11186
             Project: Infinispan
          Issue Type: Feature Request
            Reporter: Lingchao Chen


When I try to upgrade infinispan-core from 9.X to 10.X. The following code breaks.

{code:java}
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
        } 	
    }
}
{code}

The code should pass, but it throws an error:

{code:java}
[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
{code}






--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list