Skip to content

Fix uninitialized usage of File::Stat#2560

Merged
enebo merged 1 commit intojruby:masterfrom
lumeet:uninitialized_file_stat
Feb 5, 2015
Merged

Fix uninitialized usage of File::Stat#2560
enebo merged 1 commit intojruby:masterfrom
lumeet:uninitialized_file_stat

Conversation

@lumeet
Copy link
Contributor

@lumeet lumeet commented Feb 4, 2015

  • Fix File::Stat#struct when uninitialized
  • Make other methods fail nicely unless initialized

The behavior is now the same as in MRI 2.2.

* Fix File::Stat#struct when uninitialized
* Make other methods fail unless initialized
@enebo enebo added this to the 9.0.0.0.pre2 milestone Feb 5, 2015
@enebo enebo added the core label Feb 5, 2015
enebo added a commit that referenced this pull request Feb 5, 2015
Fix uninitialized usage of File::Stat
@enebo enebo merged commit 9f9d1f9 into jruby:master Feb 5, 2015
@enebo
Copy link
Member

enebo commented Feb 5, 2015

@lumeet Is this uninitialized behavior possibly also a bug in our 1.8.7 and 1.9.3 support? If so then this could be done for our jruby-1_7 branch as well.

@lumeet
Copy link
Contributor Author

lumeet commented Feb 6, 2015

@enebo Yes, I submitted a PR for 1.7 too: #2572.

@lumeet lumeet deleted the uninitialized_file_stat branch February 11, 2015 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants