Bug constant7 null reference coded as string constant
Status: Alpha
Brought to you by:
martinbaker
Bug constant7 null reference coded as string constant
Test input file
public class test {
public test() {
ptr = null;
}
}
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="ptr"/>
<constant stringConst="null"/>
</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="ptr"/>
<constant null="true"/>
</assign>
</method>
</classDef>
</package>
test input file