4 ms·
Not always and not quite. Here's an example of some type-foo with generics that works on Java 7 and not on Java 8 https://stackoverflow.com/questions/34659055/
by evgeniysharapov 9y ago
Not always and not quite. Here's an example of some type-foo with generics that works on Java 7 and not on Java 8
https://stackoverflow.com/questions/34659055/java-8-incompatible-types https://stackoverflow.com/questions/34659055/java-8-incompat...
- hyperpape 9y agoIf I read that correctly, the “breakage” is a bug fix, as that particular Java 7 compiler isn’t behaving according to the spec. You can argue that breaks backwards compatibility, but in the smallest, most innocuous way possible.
- kelnos 9y agoMy understanding after reading the answer to that SO question is that the behavior in 7 was a bug. New releases of javac aren't required to be bug-compatible with previous releases.