Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
webconsole-3.0.0
-
None
Description
Initially reported in FELIX-1957:
The latest changes to the webconsole makes it again incompatible with the OSGi/Minimum EE:
- UUID used in ConfigurationRender is missing in OSGi/Minimum-1.2
- Collections.list(Enumeration) used in ComponentsServlet & ComponentConfigurationPrinter is not support by OSGi/Minimum-1.1. Although it is added in OSGi/Minimum-1.2, it's better for wider compatibility to replace this method with own. Simple implementation is given below:
class WebConsoleUtil {
....
/**
- This method is the same as Collections#list(Enumeration). The reason to duplicate it here,
- is that it is missing in OSGi/Minimum execution environment.
- @param e the enumeration which to convert
- @return the list containing all enumeration entries.
*/
public static final ArrayList list( Enumeration e ) { ArrayList l = new ArrayList(); while ( e.hasMoreElements() ) l.add( e.nextElement() ); return l; }
}
- Locale.Locale( String ) constructor is not available in OSGi/Minimum-1.1 (though available in OSGi/Minimum-1.2). However, for better compatibility we should use another approach.
So instead of:
DEFAULT_LOCALE = new Locale( "" )
it can be
DEFAULT_LOCALE = Locale.getDefault();
or even better (since our default language translation is English):
DEFAULT_LOCALE = Locale().ENGLISH
Attachments
Issue Links
- is related to
-
FELIX-1957 Make Web Console compatible with OSGi/Minimum-1.0 EE
- Closed