I'm currently reviewing the security implications of various warnings in a large Java EE application. Since most of the code is several years old, it contains many uses of the raw collection types:
List items = new List();
rather than the parametrized collection types:
List<Item> items = new List<Item>();
The only security implication I can think of is that raw types cannot be statically type-checked at compilation and could potentially result in a run-time errors such as ClassCastException
which, depending on where in the code this occurs, might lead to a denial of service.
Are there any other implications of using raw types that I'm not thinking of?