You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Duplicate Java Callable Wrapper names are allowed when they shouldn't be. #2266
Create an .apk: msbuild /t:SignAndroidPackage App.csproj
Expected Behavior
It should error out, as we have two assemblies which will each generate an example lib.EmptyClass Java type.
Actual Behavior
Warnings:
warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Lib1.EmptyClass, Lib1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Lib1.EmptyClass, Lib2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
warning : References to the type 'Lib1.EmptyClass' will refer to 'Lib1.EmptyClass, Lib1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Discussion:
The warning is correct, in that it should be emitted. However, because we emit that warning, we don't check for duplicate Java Callable Wrapper names. The problem is here:
Activity
[Xamarin.Android.Build.Tasks] GenerateJavaStubs should fail on duplic…
jonathanpeppers commentedon Oct 8, 2018
I started working on this as an "easy win" during triage today, but @brendanzagaeski should probably finish this up: master...jonathanpeppers:dupe-jcws
As part of: #2258 (comment)
[Xamarin.Android.Build.Tasks] GenerateJavaStubs should fail on duplic…
[Xamarin.Android.Build.Tasks] GenerateJavaStubs should fail on duplic…
[Xamarin.Android.Build.Tasks] GenerateJavaStubs should fail on duplic…
[Xamarin.Android.Build.Tasks] GenerateJavaStubs should fail on duplic…
[Xamarin.Android.Build.Tasks] GenerateJavaStubs should fail on duplic…
[Xamarin.Android.Build.Tasks] XA4214, XA4215 in GenerateJavaStubs (#2349