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

VisibilityParameterAnnotationTag not picking up Elements correctly #2057

Open
lbettels opened this issue Mar 12, 2024 · 0 comments
Open

VisibilityParameterAnnotationTag not picking up Elements correctly #2057

lbettels opened this issue Mar 12, 2024 · 0 comments

Comments

@lbettels
Copy link

When running Soot with the jap pack, it manages to find all the correct Annotations, but it fails in some instances to correctly determine the elements belonging to that tag.

My specific case is:

    @PostMapping("/checkIn")
    @Transactional
    public String checkIn(@ModelAttribute RoomVisit.Data visitData, Model model){
        ...;
    }

When I analyze the method and retrieve the VisibilityParameterAnnotationTag, the @ModelAttribute correctly shows up,
but visitData is not in the elems field.

Screenshot from 2024-03-12 11-36-23

The information of the Annotation also didn't get lost while compiling, as the command javap -c -v correctly shows the Annotation only for parameter 0.

Screenshot from 2024-03-12 11-41-36

Here is the compiled class file:
RoomController.zip

I am currently using the newest build of Soot and Java 17.

Any help would be greatly appreciated.
Cheers!

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