Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
maven-scr-plugin-1.7.4
-
None
-
Ubuntu linux 11.10, amd64, Java 1.6 - seems to be a parser issue.
Description
When parsing the following property annotations:
-------------
//
@Property(value = "127.0.0.1" //
, label = "Server host" //
, description = "IP address of host to connect to." //
)
final static String HOST = "host";
//
@Property(intValue = 5000 //
, label = "Yate server port" //
, description = "Port number to connect to, <=0 to disable this server." //
)
final static String PORT = "port";
//
@Property(value = "" //
, label = "Server name" //
, description = "Name for this server." //
)
final static String NAME = "name";
//
@Property(value = "ALL" //
, label = "Server purpose" //
, description = "What this served is going to be used for, used to filter them." //
)
-------------
The metatype.xml is incorrectly generated ( extra chars from the source picked up into attribut name of AD element for port:
-------------
<OCD id="com.peoplecall.yate.server" name="Configuracion de socket" description="Conexiones a los servidores de yate.">
<AD id="host" type="String" default="127.0.0.1" name="Server host" description="IP address of host to connect to."/>
<AD id="port" type="Integer" default="5000" name="/
"Yate server port" description="Port number to connect to, <=0 to disable this server."/>
<AD id="name" type="String" default="" name="Server name" description="Name for this server."/>
<AD id="purpose" type="String" default="ALL" name="Server purpose" description="What this served is going to be used for, used to filter them."/>
</OCD>
------------
Notice it only happens in the non-string property, even if I use the same comment pattern as the others. I think this is related to a previously reported ( by me ) bug: https://issues.apache.org/jira/browse/FELIX-3234 and due to the SCR plugin reparsing the source code ( I suppose there is a reason for not going to the .class file to pick up annotations ).