Class EnumSwitchFilter

  • All Implemented Interfaces:
    MutationInterceptor

    public class EnumSwitchFilter
    extends RegionInterceptor
    For switches on Enums java creates a synthetic class with an int array field. The following code then accesses it GETSTATIC pkg/Person$1.$SwitchMap$pkg$MyEnum : [I ALOAD 1 INVOKEVIRTUAL pkg/MyEnum.ordinal ()I IALOAD LOOKUPSWITCH As the generated class is synthetic, no mutants will be seeded in it. The code that accesses it must however be filtered.