felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glyn Normington (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-3216) Support Gogo commands which are Java language keywords
Date Thu, 10 Nov 2011 12:16:51 GMT
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


View raw message