1. cubeia
  2. Cubeia Styx
  3. Issues
Issue #14 resolved

Problem with the toString() method and a "result" field

Ernesto Perez
created an issue

Given this protocol structure, with a field with name="result":

<struct name="styx_test">
    <var name="result" type="int8" />

The corresponding generated Java class is the following:

public class StyxTest implements ProtocolObject, Visitable {
    public byte result;

    public String toString() {
        StringBuilder result = new StringBuilder("StyxTest :");
        result.append(" result["+result+"]");
        return result.toString();

The appended variable is not the correct one. It should be something like "this.result"