You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Andrei Pozolotin (JIRA)" <ji...@apache.org> on 2012/09/21 00:20:08 UTC
[jira] [Comment Edited] (KARAF-1851) inconsistent
FeaturesNamespaces versions
[ https://issues.apache.org/jira/browse/KARAF-1851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460008#comment-13460008 ]
Andrei Pozolotin edited comment on KARAF-1851 at 9/21/12 9:19 AM:
------------------------------------------------------------------
and this should not use hard coded literal:
instead use FeaturesNamespaces.URI_CURRENT
{code}
@javax.xml.bind.annotation.XmlSchema(namespace = "http://karaf.apache.org/xmlns/features/v1.2.0", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package org.apache.karaf.features.internal.model;
import org.apache.karaf.features.FeaturesNamespaces;
{code}
was (Author: andrei.pozolotin):
and this should not use hard coded literal:
instead use FeaturesNamespaces.FeaturesNamespaces
{code}
@javax.xml.bind.annotation.XmlSchema(namespace = "http://karaf.apache.org/xmlns/features/v1.2.0", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package org.apache.karaf.features.internal.model;
import org.apache.karaf.features.FeaturesNamespaces;
{code}
> inconsistent FeaturesNamespaces versions
> ----------------------------------------
>
> Key: KARAF-1851
> URL: https://issues.apache.org/jira/browse/KARAF-1851
> Project: Karaf
> Issue Type: Bug
> Components: karaf-feature
> Reporter: Andrei Pozolotin
>
> should this be same version number 1.2.0?
> String URI_CURRENT = URI_1_2_0;
> QName FEATURES_CURRENT = FEATURES_1_1_0;
> ################################################
> {code}
> public interface FeaturesNamespaces {
> String URI_0_0_0 = "";
> String URI_1_0_0 = "http://karaf.apache.org/xmlns/features/v1.0.0";
> String URI_1_1_0 = "http://karaf.apache.org/xmlns/features/v1.1.0";
> String URI_1_2_0 = "http://karaf.apache.org/xmlns/features/v1.2.0";
> String URI_CURRENT = URI_1_2_0;
> QName FEATURES_0_0_0 = new QName("features");
> QName FEATURES_1_0_0 = new QName(URI_1_0_0, "features");
> QName FEATURES_1_1_0 = new QName(URI_1_1_0, "features");
> QName FEATURES_1_2_0 = new QName(URI_1_2_0, "features");
> QName FEATURES_CURRENT = FEATURES_1_1_0;
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira