Files
openide/java/java-impl/resources/inspectionDescriptions/ForwardCompatibility.html
2025-02-05 04:43:28 +00:00

21 lines
899 B
HTML

<html>
<body>
Reports Java code constructs that may fail to compile in future Java versions.
<p>The following problems are reported:</p>
<ul>
<li>Uses of <code>assert</code>, <code>enum</code> or <code>_</code> as an identifier</li>
<li>Uses of the <code>var</code>, <code>yield</code>, or <code>record</code> restricted identifier as a type name</li>
<li>Unqualified calls to methods named <code>yield</code></li>
<li>Modifiers on the <code>requires java.base</code> statement inside of <code>module-info.java</code></li>
<li>Redundant semicolons between import statements</li>
</ul>
<p><b>Example:</b></p>
<pre><code>
// This previously legal class does not compile with Java 14,
// as 'yield' became a restricted identifier.
public class yield {}
</code></pre>
<p>Fixing these issues timely may simplify migration to future Java versions.</p>
<!-- tooltip end -->
</body>
</html>