You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2008/03/11 08:14:46 UTC

[jira] Updated: (FELIX-353) Garbled scr.property name when serialVersionUID declaration is present

     [ https://issues.apache.org/jira/browse/FELIX-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated FELIX-353:
-----------------------------------

    Fix Version/s:     (was: felix-1.0.0)
                   maven-scr-plugin-1.0.1

> Garbled scr.property name when serialVersionUID declaration is present
> ----------------------------------------------------------------------
>
>                 Key: FELIX-353
>                 URL: https://issues.apache.org/jira/browse/FELIX-353
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>         Environment: macosx / JDK 1.5 / maven-scr-plugin V0.3.0-SNAPSHOT
>            Reporter: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: maven-scr-plugin-1.0.1
>
>         Attachments: pom.xml
>
>
> Processing the following code with "mvn scr:scr" generates a garbled scr.property name in serviceComponents.xml:
> package org.apache.felix.bugreports;
> /** @scr.component */
> public class TestScrProperty {
>     // the scr.property name is correctly generated
>     // if the following declaration is commented out
>     private static final long serialVersionUID = 5710195320616458465L;
>    // this comment should not be part of the
>    // scr.property name, but it is
>     /** @scr.property value="something" */
>     private final static String S = "whatever";
> }
> Leads to a bad scr:property name:
> <?xml version="1.0" encoding="UTF-8"?>
> <components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.0.0">
> <scr:component enabled="true" immediate="true" name="org.apache.felix.bugreports.TestScrProperty">
> <scr:implementation class="org.apache.felix.bugreports.TestScrProperty"/>
> <scr:property name="// this comment should not be part of the &#10;   // scr.property name, but it is&#10;&#10;       &#10;          &quot;whatever" value="something"/>
> </scr:component>
> </components>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.