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

DelcaredType is missing in local variable when defined infor initialization clause or in catch exception type definition #98

Open
LABSARI opened this issue Jan 12, 2024 · 3 comments

Comments

@LABSARI
Copy link

LABSARI commented Jan 12, 2024

for(int i = 0; i<10; i++){
    ...
}
try{}
catch(Exception e){}

In the model, local variables i and e have nil as declaredType.

@NicolasAnquetil
Copy link
Contributor

I believe this is because the type is primitive.
Famix is a dependency model, we are not interested in dependencies to primitive types.

There is an option in VerveineJ to get this information: [-alllocals] Forces outputing all local variables, even those with primitive type

Can we close the issue ?

@LABSARI
Copy link
Author

LABSARI commented Jan 16, 2024

I believe this is because the type is primitive. Famix is a dependency model, we are not interested in dependencies to primitive types.

There is an option in VerveineJ to get this information: [-alllocals] Forces outputing all local variables, even those with primitive type

Can we close the issue ?

I am using the -alllocals option, I should have specified it.
I have the declaredType for all local variables and parameters except for variables declared inside control flow clauses.

@NicolasAnquetil
Copy link
Contributor

ok, so this is a bug to be corrected

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

No branches or pull requests

2 participants