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

Merge the functionality of Descriptors into JavaSignatures. #385

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

sjrd
Copy link
Contributor

@sjrd sjrd commented Nov 13, 2023

With the exception of fields of a base type, descriptors are a strict subset of member signatures. We generalize JavaSignatures to be able to read such field descriptors, so that we can remove Descriptors in favor of JavaSignatures.

We cannot do the same for class signatures, unfortunately, because monomorphic extends clauses are store in a completely different way that polymorphic ones.

With the exception of fields of a base type, descriptors are a
strict subset of member signatures. We generalize JavaSignatures
to be able to read such field descriptors, so that we can remove
Descriptors in favor of JavaSignatures.

We cannot do the same for *class* signatures, unfortunately,
because monomorphic extends clauses are store in a completely
different way that polymorphic ones.
@sjrd sjrd requested a review from bishabosha November 13, 2023 09:33
@bishabosha bishabosha merged commit 972bb79 into scalacenter:main Nov 14, 2023
4 checks passed
@sjrd sjrd deleted the merge-descriptors-into-signatures branch November 14, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants