Getting line 459 is out of range error. But the java program has only 458 lines

I am using version * Version 8.9.6 (build 50800).
While invoking the sonar scan through Bazel, I am getting the error

Caused by: Line 459 is out of range in the file abc.java.
The file is having only 458 lines.

After cleaning the Bazel cache with bazel clean --expunge fixed the issue.

1 Like

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