Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<h2><code>@Override</code> annotation</h2> <blockquote> <p><code>@Override</code> - Checks that the method is an override. Causes a compile error if the method is not found in one of the parent classes or implemented interface</p> </blockquote> <h2>Eclipse configuration</h2> <pre><code>Properties &gt; Java Compiler &gt; Compiler compliance level = 1.6 </code></pre> <p>Check <code>Compiler compliance level</code> at project level too.</p> <pre><code>Properties &gt; Java Compiler &gt; Errors/Warnings </code></pre> <p>The <code>@Override</code> annotation is under Annotations and is ignored by default.</p> <h2>Maven configuration</h2> <p>Add this properties to <code>pom.xml</code></p> <pre><code>&lt;properties&gt; &lt;maven.compiler.source&gt;1.6&lt;/maven.compiler.source&gt; &lt;maven.compiler.target&gt;1.6&lt;/maven.compiler.target&gt; &lt;/properties&gt; </code></pre> <p>This is issued by <a href="http://maven.apache.org/plugins/maven-compiler-plugin/" rel="nofollow noreferrer">maven-compile-plugin</a></p> <blockquote> <blockquote> <p>note that at present the default source setting is 1.5 and the default target setting is 1.5, independently of the JDK you run Maven with. If you want to change these defaults, you should set source and target as described in <a href="http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html" rel="nofollow noreferrer">Setting the -source and -target of the Java Compiler</a>.</p> </blockquote> </blockquote> <h2>Read more</h2> <ul> <li><a href="https://blogs.oracle.com/ahe/entry/override_snafu" rel="nofollow noreferrer">@Override Snafu</a></li> <li><a href="https://stackoverflow.com/questions/2335655/why-is-javac-failing-on-override-annotation">Why is javac failing on @Override annotation</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload