Last modified: 2012-04-18 02:33:50 UTC
Description Resource Path Location Type The method onClick(View) of type new View.OnClickListener(){} must override a superclass method WikiItemizedOverlay.java /Wikipedia/src/org/wikipedia line 65 Java Problem The method run() of type ToastPlugin.RunnableToast must override a superclass method ToastPlugin.java /Wikipedia/src/com/chariotsolutions/toast/plugin line 48 Java Problem Commenting out the "@Override" is enough to get rid of the errors, but does mean it wouldn't work out of the box for people.. Version: 3.7.1 Build id: M20110909-1335 on Win 7 x64 etc
Works for me with Android SDK r14.
Hm, I do see these errors in Eclipse, but the command-line build is fine for me. sigh
(In reply to comment #2) > Hm, I do see these errors in Eclipse, but the command-line build is fine for > me. sigh Well done Java!
Looks like some versions of JDK 1.5 and/or 1.6 throw this complaint when @Override'ing things on an interface: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5008260 On my Mac laptop, switching from JDK 1.5 to 1.6 in the project's Java settings clears it up.
Confirmed. Can we just push the project upto 1.6 by deault?
sounds like a good policy, can we close this?
Yup. Resolving.
Can I suggest someone tosses this into the README/FAQ? I ran into this same issue when checking out the code for the first time on my Mac.
(In reply to comment #8) > Can I suggest someone tosses this into the README/FAQ? I ran into this same > issue when checking out the code for the first time on my Mac. I just checked out a fresh copy and didn't have to change any code to compile. Jon, what version of Xcode are you on?
I was doing this on Eclipse for Android (on OSX). Eclipse - 3.7.2 Xcode - 4.3.2 (4E2002) Android SDK - rev19 OSX - 10.7.3