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

[OA INTER] Adicionar Stack trace ao conflito. #43

Closed
barbosamaatheus opened this issue Aug 12, 2021 · 1 comment
Closed

[OA INTER] Adicionar Stack trace ao conflito. #43

barbosamaatheus opened this issue Aug 12, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@barbosamaatheus
Copy link
Collaborator

Atualmente o conflito leva em consideração apenas o método local onde existe a interferência. Para fins de melhor reportar os conflitos para o usuário final, devemos adicionar o stack trace para podermos identificar a origem da chamada que desencadeou o conflito.

EX:

1.   public void m() {
2.       List<String> validParameterAnnotations = new ArrayList<String>();
3.       validParameterAnnotations.add("LEFT"); // LEFT
4.       validParameterAnnotations.add("BASE");
5.       validParameterAnnotations.add("RIGHT");  // RIGHT
6.    }

os conflitos retornados atualmente são:
source(java.util.ArrayList, add, 463, $stack5 = $stack4 + 1) => sink(java.util.ArrayList, add, 463, $stack5 = $stack4 + 1),

no entanto, o conflito final deve ser: (m(), 3 => m(), 4)

@barbosamaatheus barbosamaatheus added the enhancement New feature or request label Aug 12, 2021
@barbosamaatheus barbosamaatheus self-assigned this Aug 12, 2021
@barbosamaatheus
Copy link
Collaborator Author

Já implementado

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant