gdx-websockets icon indicating copy to clipboard operation
gdx-websockets copied to clipboard

Bug with Json parse of class

Open dDevTech opened this issue 3 years ago • 0 comments

Hi, i have detected a bug in the serializer: I have a class to be serialized public class SpaceLoader { public int x=0; public SpaceLoader(){ x=6; } public SpaceLoader(int x){ this.x=x; }

public int getX() {
    return x;
}

public void setX(int x) {
    this.x = x;
}

}

However when i deserialize the object if the default bold constructor is not visible the deserialize will never end

dDevTech avatar Apr 05 '21 11:04 dDevTech