Parser does not return correct line number on trival errors
-----------------------------------------------------------

                 Key: JRUBY-1616
                 URL: http://jira.codehaus.org/browse/JRUBY-1616
             Project: JRuby
          Issue Type: Bug
          Components: Interpreter
    Affects Versions: JRuby 1.1b1
         Environment: Sun Java 1.6 JDK
Linux x86
            Reporter: Brent Roman
            Priority: Minor
             Fix For: JRuby 1.1b1


class Foo

  puts "Oh No!  I'm going to put an error in my code!"

end

10/0  #I think the parser tries (and fails) to evaluate this constant expression

# so it reports the divide error at line 1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to