Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2503 MOP 2.0 design inflluencing issues
  3. GROOVY-2049

Provide some auto-overloading between int and String values

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 2.4.0-beta-4
    • groovy-runtime
    • None

    Description

      The String setter in the attached example is never called. Instead, the int setter is called when I assign a String with size() == 1. If the size is bigger, I get a GroovyClassCastException

      Attachments

        1. MethodSelectorTest.groovy
          0.6 kB
          Aaron Digulla

        Issue Links

          Activity

            People

              melix Cédric Champeau
              digulla Aaron Digulla
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: