Menu

#40 Bug constant3 – character parsed as string

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

Bug constant3 – character parsed as string

Test input file

public class test {
public test() {
ch = 'c';
}
}

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="ch"/>
<constant stringConst="'c'"/>
</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="ch"/>
<constant charConst="c"/>
</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
     
MongoDB Logo MongoDB