MyEclipse method plus @override on the error treatment method

Source: Internet
Author: User

In the @override method above will be an error as follows:

The method OnCreate (Bundle) of type HelloWorld must override or implement a Supertype method

Override is a description of the method that the subclass inherits from the parent class.

Override is JDK5 already have, but there is a bug, is not support the implementation of the interface, think this is not an override and JDK6 fixed the bug, whether the method of the parent class overrides or the implementation of the interface can be added @override

Modification Method:

Modify your myeclipse specified compiler version in the options in Java compiler to specify a version at least 1.6 in MyEclipse change the compiler method: Project->properties->java Compiler->configure Workspace Setting, can be set in the popup page.

MyEclipse method plus @override on the error treatment method

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.