Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1119

allow certain mehtods to be called on null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-JSR-6
    • None
    • None

    Description

      > cannot call
      > null.inspect()
      > and
      > null.dump()
      > although these methods' implementation would be able
      > to deal with this.
      > The invoke mechanism checks for null prevent this.
      > Either adapt the invoke mechanism or simplify the
      > implementations.

      blackdrag:

      I think we should adapt the invoker mechanism for this and give "null"
      some methods. we could convert null into a constant NullObject, and use
      this instead. I think the changes are minimal.

      Attachments

        Issue Links

          Activity

            People

              galleon Ryan Harris
              codevise Dierk König
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: