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

Null Object

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0-JSR-6
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

It would be nice to have a null object. I guess not a real object, just a metaclass that you could define methods on.

I've defined some utility methods on null before in ruby, mainly like sqlEquals(), which was also defined for all standard types. And its just nice not to have to write code that worries about the null case.

Issue Links

is related to

Improvement - An improvement or enhancement to an existing feature or task. GROOVY-1119 allow certain mehtods to be called on null

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Guillaume ALLEON added a comment - 13/Jun/06 5:18 PM

See GROOVY-1119 which is the sibbling issue.

Show
Guillaume ALLEON added a comment - 13/Jun/06 5:18 PM See GROOVY-1119 which is the sibbling issue.

People

  • Assignee:
    blackdrag blackdrag
    Reporter:
    Yuri Schimke
Vote (0)
Watch (0)

Dates

  • Created:
    23/Apr/04 3:32 PM
    Updated:
    13/Jun/06 5:18 PM
    Resolved:
    13/Jun/06 5:18 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.