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

null.clone() should throw NPE instead of CloneNotSupportedException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.6.4, 1.7-beta-1
    • None
    • None

    Description

      Currently, null.clone() throws a CloneNotSupportedException because org.codehaus.groovy.runtime.NullObject doesn't implement Cloneable.

      I'll try to provide a patch tonight.

      Attachments

        Activity

          People

            pniederw Peter Niederwieser
            pniederw Peter Niederwieser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: