The following problems are reported:
assert
, enum
or _
as an identifiervar
, yield
, or record
restricted identifier as a type nameyield
requires java.base
statement inside of module-info.java
Example:
// This previously legal class does not compile with Java 14,
// as 'yield' became a restricted identifier.
public class yield {}
Fixing these issues timely may simplify migration to future Java versions.