Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » @Override not working for me
@Override not working for me [message #146395] Mon, 03 April 2006 18:58 Go to next message
Eclipse UserFriend
Originally posted by: eclipse.c3images.com

I just recently switched over to using Java 1.5, and I'm having trouble
with the @Override annotation. Specifically, even though I've set my
compiler compliance level to 5.0, whenever I try to use that annotation I
get an error that says "Type Mismatch: Cannot convert from Override to
Annotation." And this, despite the fact that I'm getting compiler warnings
saying that I'm -not- using @Override in the appropriate locations.

Is there some switch that I haven't turned on?

Thanks very much.
Re: @Override not working for me [message #146403 is a reply to message #146395] Mon, 03 April 2006 19:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hendrik_maryns.despammed.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greg Maletic schreef:
> I just recently switched over to using Java 1.5, and I'm having trouble
> with the @Override annotation. Specifically, even though I've set my
> compiler compliance level to 5.0, whenever I try to use that annotation
> I get an error that says "Type Mismatch: Cannot convert from Override to
> Annotation." And this, despite the fact that I'm getting compiler
> warnings saying that I'm -not- using @Override in the appropriate
> locations.
>
> Is there some switch that I haven't turned on?

Can you give some code exhibiting this problem, or a screenshot?

H.
- --
Hendrik Maryns

==================
www.lieverleven.be
http://aouw.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEMXeQe+7xMGD3itQRAoHIAJ0baHcU2h2UP8edIuE8D7m7KwZKMwCf fqte
G9mmDx8IhUB1AJagtFoLZq0=
=6zKN
-----END PGP SIGNATURE-----
Re: @Override not working for me [message #146772 is a reply to message #146403] Mon, 03 April 2006 21:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.c3images.com

Hendrik Maryns wrote:

> Can you give some code exhibiting this problem, or a screenshot?

If you visit http://homepage.mac.com/gmaletic/override.png you can see a
screenshot of the problem I'm talking about. When you mouseover the first
error, it says "Type Mismatch: Cannot convert from Override to
Annotation." When you mouseover the second error, it says "The method
getPossibleScreenshotNames() of type A2600Rom should be tagged with
@Override since it actually overrides a superclass method."

A paradox, no?
Re: @Override not working for me [message #147060 is a reply to message #146395] Thu, 06 April 2006 20:58 Go to previous message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Greg Maletic" <eclipse@c3images.com> wrote in message
news:9b25efe7ff1c80a85683e475f344f047$1@www.eclipse.org...
>I just recently switched over to using Java 1.5, and I'm having trouble
>with the @Override annotation. Specifically, even though I've set my
>compiler compliance level to 5.0, whenever I try to use that annotation I
>get an error that says "Type Mismatch: Cannot convert from Override to
>Annotation." And this, despite the fact that I'm getting compiler warnings
>saying that I'm -not- using @Override in the appropriate locations.
>
> Is there some switch that I haven't turned on?

I wonder if maybe you are compiling against a 1.4 JRE even though you have
Java 5.0 compiler compliance turned on? Check your JRE classpath container,
in the Java Build Path dialog.
Previous Topic:word wrap in xml editor
Next Topic:Automatic java compiling
Goto Forum:
  


Current Time: Sat Dec 21 12:47:58 GMT 2024

Powered by FUDForum. Page generated in 0.07490 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top