Java - illegal generic array Aug 21, 2016 loginacrocontext, email, display_nameacrocontext, first_name, last_name The following code will have a compile error\ 1 new List<E>[]; The reason is that it is not a typesafe. It will violate the generic type system in Java