Wrong line numbers in error messages when using .java files

javac states that the error is on line 6 and the other bit -
// line 6, error, but it is reported be on line 3

is just a comment in the source code and has no bearing on javac’c error report.

So it seems that javac can find and report the correct error line but Processing reports a different line number for the same error.

Seems to me like an issue for the Processing team to resolve.

2 Likes