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 }}
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Bindingsgenerator: Package public class inheriting from package class results in error #168
We have two classes, public class MyPublicClass extends MyPackageClass and abstract class MyPackageClass (package private class). This generates code for MyPublicClass which wants to inherit from MyPackageClass, but because parent class is package private, no C# code is generated for it.
obj/Debug/generated/src/Com.Xamarin.MyPublicClass.cs(9,59,9,73): error CS0234: The type or namespace name 'MyPackageClass' does not exist in the namespace 'Com.Xamarin' (are you missing an assembly reference?)
This reproduces with Visual Studio for Mac Community 2017 and also latest generator.exe code compiled from source. Attached is a problematic Jar. Please take a look. Just create an Android binding library project, add the attached jar, and build. libxamarinbug.jar.zip
We actually have a Trello card discussing just this, dated Jul 31, 2012.
I would love to have this. The problem is clawing out time for actual generator fixes and improvements, as opposed to all the other things we work on... :-(
Activity
jonpryor commentedon Jun 27, 2017
We actually have a Trello card discussing just this, dated Jul 31, 2012.
I would love to have this. The problem is clawing out time for actual generator fixes and improvements, as opposed to all the other things we work on... :-(
[generator] fixup access modifiers on base classes
[generator] fixup access modifiers on base classes
[generator] fixup access modifiers on base classes
[generator] fixup access modifiers on base classes
[generator] fixup access modifiers on base classes
[generator] better support for "package-private" classes
[generator] better support for "package-private" classes (#223)
Bump to Java.Interop/master/4c965c9 (#1527)
ericktony commentedon Jul 14, 2020
There's not a real solution here. The only way will be changing in "the source code" the access modifiers, is that I understand here. :-(
[generator] better support for "package-private" classes (#223)