Closed GoogleCodeExporter closed 8 years ago
The program's doing exactly what you're telling it to. Java does not have the
concept
of pass-by-value except for primitives, so this is the inevitable result.
This is why mutable value objects are avoided as much as possible nowadays.
Unfortunately things like java.awt.Point survive.
Original comment by kevin...@gmail.com
on 14 Nov 2008 at 4:43
Original issue reported on code.google.com by
and...@gmail.com
on 14 Nov 2008 at 4:15