I have the following two interfaces and a java class. The problem i am getting is that i have implemented all the methods of an interface which my code is implementing, but still compiler complains that i havnt overridden getService method in my class, though i have. I have highlighted the method overridden using . Please tell me, how to solve this problem.Thanks in advance.
Tried it out myself and appeared to work just fine.
I would say that you should check for any classes within some other jar files in your classpath with same name and package. It happens a lot that a preferred classloader in the chain has loaded the some other class (with same package and name) and it just returns that one instead of the one you are thinking about.
Joined: Jul 03, 2009
Thanks Rohit. It ran successfully. I didnt made any changes but the code compiled without any error. But why i was getting that error is still uncleared.