The following problems are reported:
assert
>, enum
or _ as an identifiervar
, yield
, or record
restricted identifier as a type nameyield
methodrequires java.base
statement inside of module-info.java
Example:
// Since Java 14, this class will stop compiling, as 'yield' becomes a restricted identifier.
public class yield {}
Fixing these issues timely may simplify migration to future Java versions.