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

Flow refinement of string conversion node causes inconsistent ATM #208

Open
zcai1 opened this issue Mar 25, 2022 · 0 comments
Open

Flow refinement of string conversion node causes inconsistent ATM #208

zcai1 opened this issue Mar 25, 2022 · 0 comments

Comments

@zcai1
Copy link

zcai1 commented Mar 25, 2022

Observation:
After applying the changes in PR #207, calling atypefactory.getAnnotatedType() on a non-string object in string concatenation returns an ATM of <refined annotations, object's real underlying java type>. For example,

"a" + List.of("b")

on the rhs, the ATM of the orignal tree can be <@Peer, List> and the ATM of the converted string may be <@Bottom, String>. However, getAnnotatedType() will return <@Bottom, List> instead.

Expected behavior:
getAnnotatedType() returns an ATM of <refined annotations, String>, and we need an extra helper function to fetch the ATM of the original tree.

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

1 participant