jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-1075

Revision 3801 break 'defined?' statement in "class << self" block

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: JRuby 1.0.0RC3
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Environment:
    Mac OS X 10.4.9, Windows XP sp2
  • Testcase included:
    yes

Description

After update to revision 3801. The defined? in "class << self" style class methods doesn't work anymore. It always return nil. (Works on revision 3800)

There is a testcase in the attached file.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    defined_bug_test.rb
    01/Jun/07 2:26 AM
    0.4 kB
    WPC

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Charles Oliver Nutter added a comment - 01/Jun/07 2:35 AM

I was afraid of that. We're going to have to examine why _attached_ isn't always a RubyModule, but for now this satisfies both bugs.
Fixed in 3805.

Show
Charles Oliver Nutter added a comment - 01/Jun/07 2:35 AM I was afraid of that. We're going to have to examine why _attached_ isn't always a RubyModule, but for now this satisfies both bugs. Fixed in 3805.

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    WPC
Vote (0)
Watch (0)

Dates

  • Created:
    01/Jun/07 2:26 AM
    Updated:
    22/Dec/07 6:29 AM
    Resolved:
    01/Jun/07 2:35 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.