Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java2Swift: Investigate using getDeclaredMethods()/getDeclaredConstructors()/etc. to find non-public members #106

Open
DougGregor opened this issue Oct 23, 2024 · 0 comments

Comments

@DougGregor
Copy link
Member

Right now, the Java2Swift tool uses java.lang.Class's getMethods(), getConstructors(), etc. that provides only public members. We should investigate whether using the getDeclaredMethods() operation would allow us to expose non-public members as well, which could be particularly useful for implementing native methods.

DougGregor added a commit to DougGregor/swift-java that referenced this issue Oct 25, 2024
When we are translating a class that was built as part of the Swift module,
use getDeclaredMethods() so we also see non-public methods.

Part of issue swiftlang#106.
DougGregor added a commit that referenced this issue Oct 25, 2024
…110)

When we are translating a class that was built as part of the Swift module,
use getDeclaredMethods() so we also see non-public methods.

Part of issue #106.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant