cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Tutkowski <mike.tutkow...@solidfire.com>
Subject Re: Eclipse Question
Date Tue, 12 Nov 2013 17:34:00 GMT
"mouseClicked(MouseEvent) must override MouseClicked(MouseEvent)"

I meant for the second mouseClicked in that line to start with a lower-case
'm' by the way.


On Tue, Nov 12, 2013 at 10:33 AM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Hi,
>
> I fetched and rebased on top of master yesterday and noticed in Eclipse
> that I now have 61 error messages.
>
> Many of them are related to @Override, but I am not sure why Eclipse is
> complaining.
>
> For example:
>
> package common;
>
> import java.awt.event.MouseEvent;
> import java.awt.event.MouseListener;
> import java.awt.event.MouseMotionListener;
>
> import streamer.BaseElement;
> import streamer.ByteBuffer;
>
> public class AwtMouseEventSource extends BaseElement implements
> MouseListener, MouseMotionListener {
>
>   public AwtMouseEventSource(String id) {
>     super(id);
>   }
>
>   @Override
>   public void mouseClicked(MouseEvent e) {
>     // Nothing to do
>   }
>
> Eclipse says mouseClicked(MouseEvent) must override
> MouseClicked(MouseEvent) for us to be able to use the @Override annotation.
>
> That makes sense, of course.
>
> The problem is that we do override that method properly: It comes from the
> MouseListener interface.
>
> Any thoughts on why Eclipse does not recognize this? It seems to only be
> looking in the class we extend and the class that that class extends.
>
> Thanks!
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message