Last Comment Bug 677035 - Build error with Android SDK platform 13: reference to ClipboardManager is ambiguous
: Build error with Android SDK platform 13: reference to ClipboardManager is am...
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: Widget: Android (show other bugs)
: Trunk
: All Android
: -- normal (vote)
: mozilla8
Assigned To: Matt Brubeck (:mbrubeck)
:
Mentors:
Depends on:
Blocks: 676275
  Show dependency treegraph
 
Reported: 2011-08-06 11:04 PDT by Matt Brubeck (:mbrubeck)
Modified: 2011-08-08 12:08 PDT (History)
0 users
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
patch (2.08 KB, patch)
2011-08-06 11:04 PDT, Matt Brubeck (:mbrubeck)
blassey.bugs: review+
Details | Diff | Review

Description Matt Brubeck (:mbrubeck) 2011-08-06 11:04:35 PDT
Created attachment 551267 [details] [diff] [review]
patch

I get the following error when building with platform-13:

GeckoAppShell.java:838: reference to ClipboardManager is ambiguous, both class android.content.ClipboardManager in android.content and class android.text.ClipboardManager in android.text match

API level 11 introduced a the android.content.ClipboardManager class, which is a subclass designed to replace android.text.ClipboardManager.  This patch uses the fully-qualified name of the old class, so that the code will build with the new SDK but still run on platforms < API level 11.
Comment 1 Matt Brubeck (:mbrubeck) 2011-08-08 12:08:32 PDT
https://hg.mozilla.org/mozilla-central/rev/95feef73a8ba

Note You need to log in before you can comment on or make changes to this bug.