This content has been marked as final. Show 4 replies
I'm inclined to agree with the Java 7 compiler here. Did you really mean to put S and T back to front in the specification of T?
As name of the class says it's strange one...
It's just stupid example - more interesting is change of compiler behavior...
If it should not compile why is it compiling under java 6?
Because they're two separate things? Java 7 is NOT simply an "upgrade" from Java 6, its a new platform. Therefore things can and will be different.
Might in this case simply be that a bug in the compiler was plugged though.
Thank you for answer.