With the problably widely known exception of the introduction of the 'assert' keyword, has there ever been a change in the Java language specification which caused old code to be no longer compatible with newer source levels of the JDK?
Summary so far (many thanks for the comments):
"Older" Java code can cause compilation errors, when upgrading to a later version, if the code uses declarations using one of the keywords which where introduced in a later version of the Java language specification (JLS):
- assert
- enum
- strictfp
assertandenumare keywords, so their introduction broke old code that used these words as identifiers. For exampleenumslibrary from Jakarta Commons. – AlexR May 12 '13 at 10:44