Eclipse indigo @ override Error

Source: Internet
Author: User

Use eclipse indigo to import the project file. If an error is reported, @ override is used to review the errors.CodeYou can find the following answers on the Internet:

The @ override annotation spec changed in Java 1.6. in Java 1.5, the compiler did not allow the @ override Annotation on implemented interface methods, but in 1.6 It does.

Check that the JRE-referenced package is indeed 1.5, changed to 1.6, and the Red Cross disappears. In the past, Java 1.5 @ override annotations were not allowed to be added to the implementation of interface methods, but 1.6 was changed.

Http://stackoverflow.com/questions/2335655/why-is-javac-failing-on-override-annotation

Related Article

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.