Annotation: @Override appears the method of type must override Asuperclass solution

Source: Internet
Author: User
Cause tracking and resolution: 1. Access to the data found that the use of @override under the jdk1.5 annotation must ensure that the method being labeled is derived from class rather than interface.
2. Even if your JDK is 1.6, you will need to modify the compiled JDK version in MyEclipse and change from 1.5 (5.0) to 1.6 (6.0), or else the above error may occur.
Liberation method: Under MyEclipse: Windows-preferences-java Compiler, on the right of the Compiler Compliance level modified to 1.6 (6.0) version.
3. If this error is found, the reason is that the project has not yet become a 1.6 (6.0) JRE.
Workaround: Project Right->build path->configure build Path->java complier (on the left row), complier compliance on the right Level is modified to version 1.6 (6.0).

Annotation: @Override appears the method of type must override Asuperclass solution

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.