Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.7.0.pre1
    • Fix Version/s: JRuby 1.7.0.pre2
    • Component/s: Interpreter
    • Labels:
      None
    • Environment:
      jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_33) [darwin-x86_64-java]
    • Number of attachments :
      0

      Description

      Sorry if this is already fixed in trunk. Is there an easy way to build the trunk version with Homebrew?

      def f
      yield([0], *[])
      end

      f

      { |x| p x }

      # x should be [0] instead of 0

      $ jruby --1.9 -v bug.rb
      jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_33) [darwin-x86_64-java]
      0

      $ ruby -v bug.rb
      ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]
      [0]

      $ rbx -X19 -v bug.rb
      rubinius 2.0.0dev (1.9.3 release yyyy-mm-dd JI) [x86_64-apple-darwin10.8.0]
      [0]

        Activity

        Hide
        Lin Jen-Shin added a comment -

        Doh, sorry for misleading

        s/lambda/block/

        I meant block here.

        Show
        Lin Jen-Shin added a comment - Doh, sorry for misleading s/lambda/block/ I meant block here.
        Hide
        Lin Jen-Shin added a comment -

        Confirmed fixed in trunk, sorry for the noise.

        ./bin/jruby --1.9 -v buggg.rb
        jruby 1.7.0.preview2.dev (ruby-1.9.3-p203) (2012-07-19 cd65b1e) (OpenJDK 64-Bit Server VM 1.7.0_04-icedtea) [linux-amd64-java]
        [0]

        Show
        Lin Jen-Shin added a comment - Confirmed fixed in trunk, sorry for the noise. ./bin/jruby --1.9 -v buggg.rb jruby 1.7.0.preview2.dev (ruby-1.9.3-p203) (2012-07-19 cd65b1e) (OpenJDK 64-Bit Server VM 1.7.0_04-icedtea) [linux-amd64-java] [0]

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Lin Jen-Shin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: