Make warnings show the right line number #1450
As discussed in issue #1446, JRuby warnings (or at least some types of them) were always reporting a line number that was one greater than reality. This pull request fixes the issue and adds a regression test.
There were two places in
Unfortunately, my change might cause some other type of warning to have line numbers that are too small by one. I might look into setting up Eclipse so I can find all references to that code and make sure they are passing in proper line numbers instead of line indices.
I also tacked on a third commit that removes some unused code from
… of the actual line number. This fixes issue #1446.