Deserializing javafx.event.EventType
Kay McCormick
k7 at uw.edu
Sat Jun 28 07:29:02 UTC 2014
Hello,
I was poking around in javafx event dispatching and I noted the
serialization of EventType. I've serialized MouseEvent.ANY to a file and in
trying to deserialize it I got the error:
java.io.InvalidObjectException: Cannot find event type "INPUT" (of EVENT)
I realize this is because the static fields have not been initialized, but
I am wondering what is the intended and proper use of serializing
EventType. Is it a requirement that the static fields be initialized prior
to deserializing? If so, how can this be ensured? I am not 100% familiar
with the details of this. I will review documentation but I'd like to know
how this can be used properly.
thanks
More information about the openjfx-dev
mailing list