public class ResolveArrayLength { public int foo() { Object[] array = new Object[0]; return array.length; } }