opelementasgn with || appears to be broken in compiler
------------------------------------------------------

                 Key: JRUBY-2787
                 URL: http://jira.codehaus.org/browse/JRUBY-2787
             Project: JRuby
          Issue Type: Bug
          Components: Compiler
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.1.3


{noformat}
~/NetBeansProjects/jruby ➔ jruby -e "def a; @a; end; public :a; def 
a=(arg); @a = arg; 4; end; public :a=;x = self.a ||= 1; p [x, self.a]"
[4, 1]
~/NetBeansProjects/jruby ➔ jruby -X-C -e "def a; @a; end; public :a; def 
a=(arg); @a = arg; 4; end; public :a=; x = self.a ||= 1; p [x, self.a]"
[1, 1]
~/NetBeansProjects/jruby ➔ ruby -e "def a; @a; end; public :a; def 
a=(arg); @a = arg; 4; end; public :a=; x = self.a ||= 1; p [x, self.a]"
[1, 1]
{noformat}

This case is commented out in testCompiler.rb right now.

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