Potential FP on S1612

@saberduck does S1612 support handling of ambiguity now?

https://sonarcloud.io/project/issues?id=1c-syntax_sonar-bsl-plugin-community&open=AXFUJJm0akOzMhdXcyQN&resolved=false&sinceLeakPeriod=true&types=CODE_SMELL

This is 1-by-1 case, as described in https://jira.sonarsource.com/browse/SONARJAVA-2795
DiagnosticCode class has instance method getStringValue() and static method getStringValue(DiagnosticCode)

Hello @nixel2007,

Indeed, in SONARJAVA-2795 we removed most of the FP for ambiguous calls, but we missed one small corner case that you are facing here. I described it in SONARJAVA-3378.

While investigating the issue, I ended up writing the fix, there is already a PR on the way, and it should be part of the next version, so you can expect the problem to disappear soon enough!

Best,
Quentin

1 Like

Hello, @Quentin! Cool, thank you!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.