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)
  • groovy
  • GROOVY-3299

Modifying meta-class has no effect in some cases

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Reopened Reopened
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: 1.6-rc-1
  • Fix Version/s: 1.7.x
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes

Description

See the attach test case. Basically it seems that the meta class for a class is cached, but if it is modified (for example via EMC syntax), the cached version is not updated.

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

Attachments

  1. File
    MetaClassCachingBugTests.groovy
    19/Jan/09 10:50 AM
    0.6 kB
    Peter Ledbrook
  2. File
    MetaClassCachingBugWithInterfaceTests.groovy
    20/Jan/09 2:14 AM
    0.6 kB
    Peter Ledbrook

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Guillaume Laforge added a comment - 19/Jan/09 11:39 AM

Alex committed the fix on both 1.6 and 1.7 branches.

Show
Guillaume Laforge added a comment - 19/Jan/09 11:39 AM Alex committed the fix on both 1.6 and 1.7 branches.
Hide
Permalink
Peter Ledbrook added a comment - 20/Jan/09 2:13 AM

Fix doesn't work for interfaces.

Show
Peter Ledbrook added a comment - 20/Jan/09 2:13 AM Fix doesn't work for interfaces.
Hide
Permalink
Peter Ledbrook added a comment - 20/Jan/09 2:14 AM

Slight variation on the original test case using the meta-class of CharSequence rather than String.

Show
Peter Ledbrook added a comment - 20/Jan/09 2:14 AM Slight variation on the original test case using the meta-class of CharSequence rather than String.
Hide
Permalink
Paul King added a comment - 20/Dec/10 6:32 AM

The test case seems to work for me on both the 1_7_X branch and trunk. Peter, are you still having issues?

Show
Paul King added a comment - 20/Dec/10 6:32 AM The test case seems to work for me on both the 1_7_X branch and trunk. Peter, are you still having issues?
Hide
Permalink
Peter Ledbrook added a comment - 20/Dec/10 6:49 AM

I'm seeing it with Groovy 1.7.6. If I have time, I'll try to get hold of the 1.7.x branch and test that.

Show
Peter Ledbrook added a comment - 20/Dec/10 6:49 AM I'm seeing it with Groovy 1.7.6. If I have time, I'll try to get hold of the 1.7.x branch and test that.

People

  • Assignee:
    Unassigned
    Reporter:
    Peter Ledbrook
Vote (0)
Watch (1)

Dates

  • Created:
    19/Jan/09 10:50 AM
    Updated:
    20/Dec/10 6:49 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.