Eclipse Java switch-case fall-through warning
<p>So I've asked my Eclipse compiler to flag such Switch Case fall-throughs as warnings:</p>

<blockquote>
  <p>Window > Preferences > Java > Compiler > Errors/Warnings > 'switch'
  case fall-through: ---------------> Warning</p>
</blockquote>

<p>But the compiler doesn't warn me in the below snippet. I can maybe understand not flagging <code>case 1</code>, but surely it should have flagged <code>case 2</code>? Isn't that what this preference is designed for?</p>

<pre><code>public static void main(String[] args) {
    int a = 2;
    switch (a) {
    case 1:
    case 2:
        System.out.println("Yay!");
    case 5:
        System.out.println("No!");
        break;
    default:
    }
}
</code></pre>

<p>produces the output:</p>

<blockquote>
  <p>Yay!</p>
  
  <p>No!</p>
</blockquote>

<p>I tried changing the level to Error which didn't make a difference either, of course.</p>

<p>I'm using Eclipse Neon, BTW. Anyone else notice this behavior on their installation?</p>