-() and other wacky operator expressions exploding...
-----------------------------------------------------

                 Key: JRUBY-4112
                 URL: http://jira.codehaus.org/browse/JRUBY-4112
             Project: JRuby
          Issue Type: Bug
          Components: Parser
    Affects Versions: JRuby 1.4.0RC1
            Reporter: Thomas E Enebo
            Assignee: Thomas E Enebo
             Fix For: JRuby 1.5


Rather unusual cases that are not valid code, but may get generated or 
fatfingered by accident:

{noformat}
-()
{noformat}

Stack:
{noformat}
~/projects/jruby ➔ jruby -e "-()"
ParserSupport.java:410:in `getOperatorCallNode': java.lang.NullPointerException
       from DefaultRubyParser.java:2240:in `case193_line782'
       from DefaultRubyParser.java:1685:in `yyparse'
       from DefaultRubyParser.java:1360:in `yyparse'
       from DefaultRubyParser.java:3891:in `parse'
       from Parser.java:106:in `parse'
       from Ruby.java:2150:in `parseInline'
       from Ruby.java:416:in `parseFromMain'
       from Ruby.java:384:in `runFromMain'
       from Main.java:272:in `run'
       from Main.java:117:in `run'
       from Main.java:97:in `main'
{noformat}

-- 
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