Hi Alain.

The return type isn't part of a method's signature in Java (which is why you
can't overload or override a method just by its return type).  IDEA is
correct to identify the method as an implementation based on matching
signature, but it should also underline the return type as a bug!

Cheers,
Dan

-----Original Message-----
From: Alain Ravet [mailto:[EMAIL PROTECTED]]
Sent: 04 July 2002 15:27
To: [EMAIL PROTECTED]
Subject: [Eap-bugs] 633 : still there/ Re: 626: method with wrong
signature tagged with (i) icon




Alain Ravet wrote:
> If an interface declares
> 
>    public String aMethod ();
> 
> 
> and you start typing  (note the wrong return type)
> 
>    public Object aMethod ()|
> 
> in an implementation class,
> 
> IDEA will erroneously display the (i) icon.
> Even after receiving a compilation error, the (i) icon keeps showing.
> 
> Alain Ravet
> 

_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs
_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to