[Java Development Issue-2] @ override must override a superclass Method Solution

Source: Internet
Author: User

I believe many of my friends will encounter problems related to @ overide when using eclispe to develop Java projects. The error format is as follows:
The method *** of Type *** must override a superclass Method
At this time, this method actually overwrites the method of a parent class, so this error will be confusing. But in fact, the reason is very simple:
Because your compiler is JDK 5, and 5 does not support the @ override format, you need to change it to a higher-level JDK, such as JDK 6. Method:
Right-click the project and choose preferences> JAVA-compiler, and change the level of compiler compliance to 1.6. I used to delete @ override one by one when I encountered this problem. It's silly to think about it now.
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.