karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Pozolotin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-1851) inconsistent FeaturesNamespaces versions
Date Thu, 20 Sep 2012 22:16:07 GMT

    [ https://issues.apache.org/jira/browse/KARAF-1851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460008#comment-13460008
] 

Andrei Pozolotin commented on KARAF-1851:
-----------------------------------------

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

Mime
View raw message