Skip to content

Conversation

@jonpryor
Copy link
Contributor

Context: dotnet/android#3223
Context: https://jenkins.mono-project.com/job/xamarin-android-pr-pipeline-debug/619/

Commit a30523e breaks the xamarin-android build, as it introduces new
XML attributes to class-parse output which
Xamarin.Android.Tools.ApiXmlAdjuster doesn't appreciate:

Unhandled Exception:
System.Exception: …/xamarin-android/bin/BuildDebug/api/api-10.xml.class-parse (16,7): Element 'class' has an unexpected attribute: 'source-file-name'. Expected attributes are: source-file-name
  at Xamarin.Android.Tools.ApiXmlAdjuster.XmlUtil.CheckExtraneousAttributes (System.String elementName, System.Xml.XmlReader reader, System.String[] expected)
  at Xamarin.Android.Tools.ApiXmlAdjuster.JavaApiLoaderExtensions.LoadTypeAttributes (Xamarin.Android.Tools.ApiXmlAdjuster.JavaType type, System.Xml.XmlReader reader, System.String[] otherAllowedAttributes)
  at Xamarin.Android.Tools.ApiXmlAdjuster.JavaApiLoaderExtensions.Load (Xamarin.Android.Tools.ApiXmlAdjuster.JavaClass kls, System.Xml.XmlReader reader)

Update Xamarin.Android.Tools.ApiXmlAdjuster so that the new
attributes introduced in a30523e are considered acceptable.

Additionally, fix the error message so that it actually lists the
"expected attributes", instead of repeating the un-expected attribute.

Context: dotnet/android#3223
Context: https://jenkins.mono-project.com/job/xamarin-android-pr-pipeline-debug/619/

Commit a30523e breaks the xamarin-android build, as it introduces new
XML attributes to `class-parse` output which
`Xamarin.Android.Tools.ApiXmlAdjuster` doesn't appreciate:

	Unhandled Exception:
	System.Exception: …/xamarin-android/bin/BuildDebug/api/api-10.xml.class-parse (16,7): Element 'class' has an unexpected attribute: 'source-file-name'. Expected attributes are: source-file-name
	  at Xamarin.Android.Tools.ApiXmlAdjuster.XmlUtil.CheckExtraneousAttributes (System.String elementName, System.Xml.XmlReader reader, System.String[] expected)
	  at Xamarin.Android.Tools.ApiXmlAdjuster.JavaApiLoaderExtensions.LoadTypeAttributes (Xamarin.Android.Tools.ApiXmlAdjuster.JavaType type, System.Xml.XmlReader reader, System.String[] otherAllowedAttributes)
	  at Xamarin.Android.Tools.ApiXmlAdjuster.JavaApiLoaderExtensions.Load (Xamarin.Android.Tools.ApiXmlAdjuster.JavaClass kls, System.Xml.XmlReader reader)

Update `Xamarin.Android.Tools.ApiXmlAdjuster` so that the new
attributes introduced in a30523e are considered acceptable.

Additionally, fix the error message so that it *actually* lists the
"expected attributes", instead of repeating the *un*-expected attribute.
@jonpryor jonpryor merged commit 39a3b87 into dotnet:master Aug 16, 2019
@jonpryor jonpryor deleted the jonp-add-expected-attributes branch August 16, 2019 20:03
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant