[ https://issues.apache.org/jira/browse/FELIX-3269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler updated FELIX-3269: ------------------------------------ Fix Version/s: scr ant task 1.2.0 scr generator 1.2.0 > maven SCR plugin @Property is not properly parsed. > -------------------------------------------------- > > Key: FELIX-3269 > URL: https://issues.apache.org/jira/browse/FELIX-3269 > Project: Felix > Issue Type: Bug > Components: Maven SCR Plugin > Affects Versions: maven-scr-plugin-1.7.4 > Environment: Ubuntu linux 11.10, amd64, Java 1.6 - seems to be a > parser issue. > Reporter: Francisco Olarte > Fix For: maven-scr-plugin-1.8.0, scr ant task 1.2.0, scr > generator 1.2.0 > > > 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 ). -- 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