This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
This is where the @Override annotation comes in very handy. Why don't you add that to the getPasswordAuthentication method and recompile?
Joined: Aug 02, 2006
i have added @override annotation to the method
but it is throwing a compiler error
The method getPasswordAuthentication(String, String) of type SendMailExchange.SMTPAuthenticator
must override or implement a supertype method
Joined: Mar 22, 2005
That tells you that the method which you thought was overriding some other method does not, in fact, do that. Now: how do you find out what the method should look like instead, so that it *does* override some other method?