---
title: "@override报错"
author: "aawty"
date: "2013-12-21T17:08:37Z"
tags: []
slug: "override"
draft: false
lastmod: "2013-12-21T17:08:37Z"
id: 1993330
url: "https://aawty.iteye.com/blog/1993330"
---

@Override 时出现以下错误： 
 
The method of type must override a superclass method.
 
那是因为你用的是myeclipse 6.0，Compiler 是jdk1.5，只要把它改为 1.6就可以了 
 
方法： 
 
project->properties-> java Build Path-> Libraries ->javaSE 改成（edit）成1.5以上版本。Apply。