compiler not handling x += 1 correctly for cases where x hasn't been assigned -----------------------------------------------------------------------------
Key: JRUBY-1216 URL: http://jira.codehaus.org/browse/JRUBY-1216 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.0.0 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo {noformat} ~/NetBeansProjects/jruby $ jruby -e "k = 1; def foo; k += 1; end; foo"self null for + Exception in thread "main" java.lang.NullPointerException at org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:84) at __dash_e__.foo__0(-e:1) at __dash_e__Invokerfoo__0Fixed0.call(Unknown Source) at org.jruby.RubyObject.callMethod(RubyObject.java:526) at org.jruby.runtime.Dispatcher$DefaultDispatcher.callMethod(Dispatcher.java:15) at org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:67) at __dash_e__.__file__(-e:1) at __dash_e__.run(-e) at org.jruby.Ruby.compileOrFallbackAndRun(Ruby.java:347) at org.jruby.Main.runInterpreter(Main.java:229) at org.jruby.Main.runInterpreter(Main.java:176) at org.jruby.Main.run(Main.java:121) at org.jruby.Main.main(Main.java:96) {noformat} Somewhere there needs to be a null guard. -- 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