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
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 //
scr.property name, but it is "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.