From 8b90a8fbbb2bb8549da8cd8b3b6e244968dbcaf2 Mon Sep 17 00:00:00 2001 From: Marek Habersack Date: Thu, 22 Apr 2021 13:43:15 +0200 Subject: [PATCH] Update jcw-gen to work with interfaces in typemaps Context: ebd7d76161ac60ce7ad3bfee87789f08a333ae78 ebd7d761 introduced support for interfaces in typemaps, but it failed to update the `jcw-gen` utility to ignore them when generating Java Code Wrappers. This, in turn, made Xamarin.Android fail to build. Fix the issue by ignoring interfaces in `jcw-gen` --- tools/jcw-gen/App.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/jcw-gen/App.cs b/tools/jcw-gen/App.cs index 94f5fd4da..b8d21bfe1 100644 --- a/tools/jcw-gen/App.cs +++ b/tools/jcw-gen/App.cs @@ -83,6 +83,10 @@ public static int Main (string [] args) static void GenerateJavaCallableWrapper (TypeDefinition type, string outputPath, TypeDefinitionCache cache) { + if (type.IsInterface) { + return; + } + var generator = new JavaCallableWrapperGenerator (type, log: Console.WriteLine, cache) { }; generator.Generate (outputPath);