Menu

#43 Bug constant6 – quotes are included in string constant

open
None
5
2005-03-03
2005-02-26
No

Bug constant6 – quotes are included in string constant

Test input file

public class test {
public test() {
st = "string";
}
}

Test output file

<?xml version="1.0" encoding="UTF-8"?>
<package>
<classDef name="test" public="true">
<method constructor="true" name="test" public="true">
<parameterList/>
<assign operator="=">
<variable name="st"/>
<constant stringConst="&quot;string&quot;"/>
</assign>
</method>
</classDef>
</package>

Text result expected

<?xml version="1.0" encoding="UTF-8"?>
<package>
<classDef name="test" public="true">
<method constructor="true" name="test" public="true">
<parameterList/>
<assign operator="=">
<variable name="st"/>
<constant stringConst="string”
</assign>
</method>
</classDef>
</package>

Discussion

  • Martin Baker

    Martin Baker - 2005-02-26

    test input file

     
  • Martin Baker

    Martin Baker - 2005-03-03
    • assigned_to: negocris --> martinbaker