Was there ever a โ€œchangeโ€ in the Java language specification?

With the likely widely known exception to the introduction of the 'assert' keyword, has there ever been a change in the specification of the Java language, which is why the old code is no longer compatible with newer levels of the JDK source code?


Summary so far (many thanks for the comments):

Old Java codes can cause compiler errors when it uses declarations using one of the keywords introduced in a later version of the Java Language Specification (JLS):

  • claim
  • transfer
  • strictfp
+7
source share
3 answers

Java 1.2

  • strictfp .

Java 1.4

  • assert .

Java 1.5

  • enum .
+6
source
+2
source

Java 10 made the var keyword. It is still a valid variable name, but an invalid class name.

0
source

All Articles