Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-825

Automatically convert String method arguments to Enum when possible

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Done
    • 1.7
    • 2.0
    • Engine
    • None

    Description

      Would be nice if

      $obj.someMethod('VALUE')

      would call

      obj.someMethod(SomeEnum.VALUE);

      when obj has #someMethod(SomeEnum). In other words, if no method is found for the provided arguments then see if some of the String arguments can be replaced with Enum constants.

      Attachments

        Activity

          People

            cbrisson Claude Brisson
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: