Joern Huxhorn created GROOVY-7845:
-------------------------------------

             Summary: Impossible to explicitely call a specific method with 
null argument.
                 Key: GROOVY-7845
                 URL: https://issues.apache.org/jira/browse/GROOVY-7845
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 2.4.6
         Environment: - Clone the repository https://github.com/huxi/bugs
- cd bugs/groovy/calls-with-null
- ./gradlew

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.
            Reporter: Joern Huxhorn






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to