I don't think I've restarted Eclipse 3.7.2, and with the following class I have the problem that if I set a break point at the line "out.close", I cannot see variable "data" in the variable view.
import java.io.Serializable
import java.rmi.Remote
import java.io.ByteArrayOutputStream
import java.io.ObjectOutputStream
object ChapterTwoAnnotations extends App {
@scala.SerialVersionUID(1L)
@scala.cloneable
@scala.remote
class SomeGreatScalaClass extends Serializable {
override def clone = super.clone
}
val obj = new SomeGreatScalaClass
val bos = new ByteArrayOutputStream
val out = new ObjectOutputStream(bos)
val data = out.writeObject(obj)
out.close
val copy = obj.clone
print("done, serialised it was " + data + " and cloned it was " + System.identityHashCode(copy) + " compared to " + System.identityHashCode(obj))
}