ASSERT-KTH / sorald

Automatic repair system for static analysis warnings from SonarQube's SonarJava, TDSC 2022 http://arxiv.org/pdf/2103.12033
MIT License
90 stars 27 forks source link

Additional bugs in S1155 #1028

Closed Zuplyx closed 1 year ago

Zuplyx commented 1 year ago

To verify the solution for #1025, I decided to test Sorald with SonarJava's test file and I unfortunately found two new bugs with the processor:

It might also be a good idea to compare Sorald's tests for the other processors with the ones from SonarJava to ensure the processors can handle all situations where SonarJava is expected to report an issue.

algomaster99 commented 1 year ago

I intentionally skipped the repair for those cases. See the updated document here because I thought it would be extremely rare for them to appear in practice.

However, if it is essential for your use case, I can implement them.

Zuplyx commented 1 year ago
algomaster99 commented 1 year ago

Sure. I will proceed to add them. Wait for a fix :)

algomaster99 commented 1 year ago

@Zuplyx fixed! It should be out in release 0.8.4.

EDIT: https://github.com/ASSERT-KTH/sorald/releases/tag/sorald-0.8.4

Zuplyx commented 1 year ago

Thank you. The repair of my code now completed without issues.

monperrus commented 1 year ago

thanks a lot @algomaster99