Bug 30566 - java.lang.String throwing java.lang.UnsupportedOperationException: Use StringFactory instead.
Summary: java.lang.String throwing java.lang.UnsupportedOperationException: Use String...
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 5.1
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
: 30619 ()
Depends on:
Reported: 2015-05-28 23:06 UTC by Peter Collins
Modified: 2015-07-10 06:17 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 30566 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Peter Collins 2015-05-28 23:06:33 UTC
I saw this earlier today after a quick deployment of ApiDemo, and it is now also causing 7 runtime test failures when running on MNC devices.

Logcat output:

##### Environment #####
Operating System: Mac OS X 10.9.5
Build Revision: 52846af840b279e4483dba6b5fb6a525ffff219a
Branch Name: master
Mobile Device: Model: Nexus 9, Manufacturer: htc, Version: M, ABI: arm64-v8a, Timezone: America/New_York,
Comment 1 Peter Collins 2015-05-28 23:07:13 UTC
This been filed upstream as https://code.google.com/p/android-developer-preview/issues/detail?id=2073
Comment 2 Jonathan Pryor 2015-05-28 23:56:45 UTC
Fixed (partially) in monodroid/32e6c283.

Note that 32e6c283 only fixes the Java.Lang.String(char[]) and Java.Lang.String(string) constructors. The other constructors have not yet been fixed.
Comment 3 Jonathan Pryor 2015-06-02 12:56:59 UTC
*** Bug 30619 has been marked as a duplicate of this bug. ***