[ https://issues.apache.org/jira/browse/FELIX-4441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler updated FELIX-4441: ------------------------------------ Fix Version/s: scr generator 1.8.4 scr ant task 1.9.2 maven-scr-plugin 1.15.2 > The default value is not escaped correctly. > ------------------------------------------- > > Key: FELIX-4441 > URL: https://issues.apache.org/jira/browse/FELIX-4441 > Project: Felix > Issue Type: Bug > Components: Maven SCR Plugin > Affects Versions: scr generator 1.8.2 > Reporter: Mikael Svahn > Labels: bug, patch > Fix For: maven-scr-plugin 1.15.2, scr ant task 1.9.2, scr > generator 1.8.4 > > > The default value is not correctly escaped when the xml file is generated. > The problem is that the characters ' ' and ',' is escaped twice. > It is solved by the following patch > --- src/main/java/org/apache/felix/scrplugin/xml/MetaTypeIO.java > 2014-02-28 08:16:21.706349600 +0100 > +++ src/main/java/org/apache/felix/scrplugin/xml/MetaTypeIO.java > 2014-02-28 08:16:28.307009600 +0100 > @@ -284,9 +284,9 @@ > } > > String result = value.trim(); > + result = result.replace("\\", "\\\\"); > result = result.replace(" ", "\\ "); > result = result.replace(",", "\\,"); > - result = result.replace("\\", "\\\\"); > return result; > } -- This message was sent by Atlassian JIRA (v6.1.5#6160)