« Return to Thread: [jira] Created: (MNG-3577) bug in PluginParameterExpressionEvaluator when using '${plugin.something}

[jira] Created: (MNG-3577) bug in PluginParameterExpressionEvaluator when using '${plugin.something}

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View in Thread

bug in PluginParameterExpressionEvaluator when using '${plugin.something}
-------------------------------------------------------------------------

                 Key: MNG-3577
                 URL: http://jira.codehaus.org/browse/MNG-3577
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.8
            Reporter: Ittay Dror


when expression is 'plugin.something', this is the code that evaluates it:
                    value = ReflectionValueExtractor.evaluate( expression.substring( 1 ), pluginDescriptor );

so the extractor sees 'lugin.something', which obviously won't work.

also, it returns 'null'. i think it would be better if evaluation of unfound expressions will just leave them as they are (so evaluating ${foo} will leave it as '${foo}').


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

 « Return to Thread: [jira] Created: (MNG-3577) bug in PluginParameterExpressionEvaluator when using '${plugin.something}

LightInTheBox - Buy quality products at wholesale price