Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to xamarin/Java.Interop/main@2573dc8c #5945

Merged
merged 1 commit into from
May 23, 2021

Conversation

@jonpryor jonpryor force-pushed the jonp-bump-ji-2573dc8c branch from 0f6a3b7 to 2fbc2e9 Compare May 20, 2021 19:15
jonpryor added a commit to dotnet/java-interop that referenced this pull request May 21, 2021
Context: dotnet/android#5945
Context: https://github.com/xamarin/xamarin-android/blob/d5ef9982dc7b9efc22f7efb80ed0b58ff0bd7cdb/src/Microsoft.Android.Sdk.ILLink/Microsoft.Android.Sdk.ILLink.csproj#L43-L46

Xamarin.Android's `Microsoft.Android.Sdk.ILLink.dll` assembly uses
`TypeDefinitionCache`, but doesn't reference the
`Java.Interop.Tools.Cecil.dll` assembly.  Instead, it references some
of the sources in `src/Java.Interop.Tools.Cecil`, and *no* sources for
any of `Java.Interop.Tools.Cecil.dll`s dependencies, such as
`Java.Interop.Tools.Diagnostics.dll`.

This meant that while commit 2573dc8 built for Java.Interop, it
broke the xamarin-android build, by introducing an (unnecessary)
`using Java.Interop.Tools.Diagnostics` into `TypeDefinitionCache.cs`:

	…/TypeDefinitionCache.cs(4,26): error CS0234: The type or namespace name 'Diagnostics' does not exist in the namespace 'Java.Interop.Tools' (are you missing an assembly reference?)
	[…/xamarin-android/src/Microsoft.Android.Sdk.ILLink/Microsoft.Android.Sdk.ILLink.csproj]

The `using Java.Interop.Tools.Diagnostics` wasn't actually needed;
it was part of an unnecessary tangent.

Remove the `using Java.Interop.Tools.Diagnostics` statement, allowing
the xamarin-android build to progress.
Fixes: dotnet/java-interop#835
Fixes: dotnet#5921

Context: dotnet#5894

Changes: http://github.com/xamarin/Java.Interop/compare/12e670a8560f69581d3a3adf0a9d91e8ce8c9afa...a5ed8919fb2ec894cb8144e51ae7c29b4811ee2a

  * dotnet/java-interop@a5ed8919: [Java.Interop.Tools.Cecil] Fix the xamarin-android build
  * dotnet/java-interop@2573dc8c: [Java.Interop.Tools.*] IMetadataResolver not TypeDefinitionCache (dotnet#842)
  * dotnet/java-interop@412e974b: Revert "[generator] Disable [SupportedOSPlatform] until .NET 5/6. (dotnet#781)" (dotnet#841)
  * dotnet/java-interop@23baf0bc: [Java.Interop] Fix NRT warnings introduced by targeting 'net6.0' (dotnet#840)
  * dotnet/java-interop@131c1496: [generator] Fix NRE from return type not consistently set (dotnet#834)
  * dotnet/java-interop@100fffc1: [generator] Ensure "global::" is prepended to generic return casts. (dotnet#838)
  * dotnet/java-interop@9b89e90e: [generator] Ignore types without names (dotnet#837)
  * dotnet/java-interop@0e01fb5d: [Java.Interop.Tools.JavaSource] Merge @return block values (dotnet#836)
@jonpryor jonpryor force-pushed the jonp-bump-ji-2573dc8c branch from 2fbc2e9 to 6124f6d Compare May 21, 2021 23:55
@jonpryor jonpryor merged commit 02ab8f7 into dotnet:main May 23, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant