felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-353) Garbled scr.property name when serialVersionUID declaration is present
Date Wed, 05 Sep 2007 15:39:34 GMT

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

Carsten Ziegeler resolved FELIX-353.
------------------------------------

    Resolution: Fixed

The value of a field is used to determine the name of a property. I committed a fix for this,
please cross-check.


> 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
>         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.


Mime
View raw message