Skip to content

Commit

Permalink
JavaTypeScanner processes all IJavaPeerable implementors
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpeppers committed Jan 23, 2024
1 parent 74bd7c4 commit e192af6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public List<JavaType> GetJavaTypes (ICollection<ITaskItem> inputAssemblies, XAAs

void AddJavaType (TypeDefinition type, Dictionary<string, TypeData> types, AndroidTargetArch arch)
{
if (type.IsSubclassOf ("Java.Lang.Object", cache) || type.IsSubclassOf ("Java.Lang.Throwable", cache) || (type.IsInterface && type.ImplementsInterface ("Java.Interop.IJavaPeerable", cache))) {
if (type.ImplementsInterface ("Java.Interop.IJavaPeerable", cache)) {
// For subclasses of e.g. Android.App.Activity.
string typeName = type.GetPartialAssemblyQualifiedName (cache);
if (!types.TryGetValue (typeName, out TypeData typeData)) {
Expand Down

0 comments on commit e192af6

Please sign in to comment.