| @Override not working for me [message #146395] | 
Mon, 03 April 2006 14:58   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 #147060 is a reply to message #146395] | 
Thu, 06 April 2006 16:58   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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.
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.09634 seconds