Skip to content

VisibilityParameterAnnotationTag not picking up Elements correctly #2057

@lbettels

Description

@lbettels

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions