Fixes java6_u31 compile error w.r.t. type inference