It compiles so generics are compatable with legacy code. However, you will have seen a warning:
Type safety: The expression of type List needs unchecked conversion to conform to List<Integer>
letting you know what you are doing is not necessarily safe.