In Java 6, using generics is optional. Code without generics does compile, but Eclipse takes issue with this, so I started wondering wether in higher Java versions the use of generics may become required, e.g.
Collection<?> foo = ...
will compile while
Collection foo = ...
won’t any more. Or: Can the compiler be forced to behave like this?—Something like Perl’s “use strict”?
In other words: Should one expect that work needs to be spent on generifying Java sources currently working fine, but not being equipped with generics? Is there some code backward compatibility guarantee by Oracle or not?
Searching for force generics or java require generics didn’t lead me to helpful information on that.