title: Accessing custom enum fields
body: <p>How can I access (without reflection) <code>RAIN</code> and <code>WIND</code> fields from some other class? My IDE shows errors when I try to reference <code>Season.FALL.RAIN</code>, <code>Season.FALL.WIND</code>, and call <code>Season.FALL.getWind()</code>.
  <code>Season</code> enum compiles fine:</p>
  <pre><code>public enum Season {
    WINTER,
    SPRING,
    SUMMER,
    FALL {
      public static final String RAIN = &quot;rain&quot;;
      public final String WIND = &quot;wind&quot;;
  
      public String getWIND() {
        return WIND;
      }
    };
  }
  </code></pre>
  <p>Why is Java allowing these members if I cannot access them from the outside? I cannot access them even inside the <code>Season</code> enum. I use Java 11.</p>