title: final public static ints can't be used in a switch statement?
body: <p>I'm confused. The following code has errors ("..." represents elided code):</p>
  
  <pre><code>int byteOrder = ...;
  switch (byteOrder)
  {
      case HDF5Constants.H5T_ORDER_BE:
          return ByteOrder.BIG_ENDIAN;
      ...
  }
  </code></pre>
  
  <p>The error is on the case statement and Eclipse complains "case expressions must be constant expressions". I looked in the source file for this and it has a long list of lines like this:</p>
  
  <pre><code>final public static int H5T_ORDER_BE = H5.J2C( JH5T_ORDER_BE );
  </code></pre>
  
  <p>I thought you could use <code>final public static int</code> constants as cases in a switch statement. Am I wrong???</p>