So I've asked my Eclipse compiler to flag such Switch Case fall-throughs as warnings:

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

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

```
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:
    }
}

```

produces the output:

> 
> Yay!
> 
> 
> No!
> 
> 
> 

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

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