I'm overriding some classes in eclipse android java project in my local private inner classes and although I see projects where this is handled fine in my particular project settings its complaining Must override a method which is exactly what it is doing???? Thanks
Asked
Active
Viewed 249 times
2 Answers
3
[My guess, before code of the op]
In Java 6, you can use @Override to annotate a method that implement an interface. In Java 5 you are not allow to do that.

Community
- 1
- 1

user802421
- 7,465
- 5
- 40
- 63
-
Thanks for this... I couldn't figure out what the problem was when I switched machines. 1.5 was enabled, switched to 1.6 and everything is great. Thanks. – knaak Feb 22 '12 at 16:30
0
You can't override a private method.
Are the supertype's methods private, or just the class itself?

erickson
- 265,237
- 58
- 395
- 493