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

Adapt CFG translation for NewClassTree #332

Open
d367wang opened this issue Jun 1, 2021 · 0 comments
Open

Adapt CFG translation for NewClassTree #332

d367wang opened this issue Jun 1, 2021 · 0 comments

Comments

@d367wang
Copy link

d367wang commented Jun 1, 2021

A new class tree is translated to the CFG node sequence as "type identifier -> anony class declaration -> anony constructor invocation".
Based on the sequence above, when dataflow analysis is running, visitIdentifier is run first, then visitClass, then visitNewClass. This causes crosscutting since all of these three spots have to check and handle anonymous classes as a special case (e.g. create extra slots and constraints), as shown in #325.

One solution to solve this issue is to adapt the CFG translation by representing NewClassTree with a single ObjectCreation node.

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