java8 inference bug