@override Error Resolution in Java

Source: Internet
Author: User

Problem:

Sometimes in the Java Eclipse Project will encounter @override error, @override remove the good, but sometimes @overvide too much, can not fundamentally solve the problem.

Analysis:

This is an issue that distinguishes between JDK versions:

In the Jdk1.5 @override already have, but the implementation of the interface is not supported, so error.

After Jdk1.6, both the inheritance of the parent class and the implementation of the interface are supported.

Solve:
First make sure the Jdk1.6 version is already installed on the machine.

Then, select the Eclipse menu Windows->preferences-->java->compiler-->compiler compliance level Select 1.6, refresh the project, recompile.

If the problem is not resolved, in the error project, the right mouse button select Properties-->java Compiler-->compiler compliance Level Select 1.6, refresh the project, recompile.

@override Error Resolution in Java

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.