Support Gogo commands which are Java language keywords
------------------------------------------------------

                 Key: FELIX-3216
                 URL: https://issues.apache.org/jira/browse/FELIX-3216
             Project: Felix
          Issue Type: Improvement
            Reporter: Glyn Normington


In migrating a long-standing set of commands to Gogo under Virgo bug 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350853, we found that we couldn't 
implement the "package" command because this is a Java keyword and cannot be 
used as a method name.

This impacts our users. We followed the precedent of Equinox and renamed the 
command "packages" instead of "package", but this really is wrong as the 
singular is used for all similar commands (bundle, par, plan, service).

Gogo could be enhanced to allow such command names as follows. It should try to 
match each command name in the service property with a method name, but if one 
cannot be found, it could add "_" to the start of the method name and try 
again. So in the example above, we would specify "package" in the service 
property, but implement a "_package" method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to