Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-11186

Updating from 9.X to 10.X breaks

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Major 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
      

              Unassigned Unassigned
              xia0c512 Lingchao Chen (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: