History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-896
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Charles Oliver Nutter
Reporter: Thomas E Enebo
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JRuby

JIT block invocation has wrong class (I think)

Created: 27/Apr/07 07:13 PM   Updated: 06/May/07 09:49 PM
Component/s: Compiler
Affects Version/s: JRuby 0.9.9
Fix Version/s: JRuby 1.0.0RC1

Time Tracking:
Not Specified


 Description  « Hide
From test/testStruct.rb
# Struct creation with a block
a = Struct.new(:foo, :bar) {
  def hello
    "hello"
  end
}

test_equal("hello", a.new(0, 0).hello)

With JIT it cannot find hello. I believe this is because block is using containing scope (main in this case) and defining it there...though the only thing I know for sure is that a does not have it.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Thomas E Enebo - 01/May/07 06:44 PM
This is working on trunk now with Charlies frame use in JIT changes

Charles Oliver Nutter - 06/May/07 09:49 PM
Closing for 1.0RC1