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

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

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

Complex default args that define methods not defining in correct class

Created: 29/Dec/07 04:31 PM   Updated: 23/Apr/08 10:03 AM
Component/s: None
Affects Version/s: None
Fix Version/s: JRuby 1.1RC1

Time Tracking:
Not Specified


 Description  « Hide
Fix coming.
class X
  def foo(x = (def foo; 'hello'; end; 'goodbye'))
    x
  end
end
x = X.new
p x.foo # should be "goodbye"
p x.foo # should be "hello", but is "goodbye"
p foo # this should fail, but doesn't, returns "hello"


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Charles Oliver Nutter - 29/Dec/07 04:32 PM
Fixed in 5430.