Client: Java Java compiler produces deep copy constructor that could make shallow copy accidentally. This closes #1254