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

Impossible to explicitly call a specific method with null argument.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.4.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The example class has three public static 'toStringSpecial' methods. It's impossible to call toStringSpecial(Set) or toStringSpecial(String) with a null argument.

      This is possible in Java by casting null to the desired type.

      It's currently impossible (AFAIK) to use Spock for testing such Java methods.

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              huxi Joern Huxhorn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: