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

Message FamixTWithInheritances>>directSubclasses is confusing for parametric types #815

Open
LABSARI opened this issue Sep 3, 2024 · 1 comment
Labels

Comments

@LABSARI
Copy link
Collaborator

LABSARI commented Sep 3, 2024

class A<T>{}

class B extends A<String>{}

In above example, A<T> has a direct subclass B that we can't access directly from class A<T> in Famix with the message directSubclasses (it returns an empty collection).
It can be confusing for the user.
In Famix, parametric types (interfaces, classes and enumerations) are extended through concretizations. And only concretizations have the inheritance association.

We could return all direct subclasses of the concretizations.

@LABSARI LABSARI assigned LABSARI and unassigned LABSARI Sep 3, 2024
@NicolasAnquetil
Copy link
Contributor

yes !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants