Switch and HotSpot JIT do not mix, fixed performance issue.