Skip to content

Commit a3e9e32

Browse files
[TrimmableTypeMap] Make JavaPeerProxy ctor accessible to typemaps
Generated typemap proxy types can derive directly from the non-generic JavaPeerProxy base when they need to represent interfaces or open generic definitions. Make the base constructor protected so those generated proxies can call it from typemap assemblies. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d669dbf commit a3e9e32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Mono.Android/Java.Interop/JavaPeerProxy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public sealed class JavaPeerAliasesAttribute : Attribute
4242
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)]
4343
public abstract class JavaPeerProxy : Attribute
4444
{
45-
private protected JavaPeerProxy (string jniName, Type targetType)
45+
protected JavaPeerProxy (string jniName, Type targetType)
4646
{
4747
ArgumentNullException.ThrowIfNull (jniName);
4848
ArgumentNullException.ThrowIfNull (targetType);

0 commit comments

Comments
 (0)