Re: Deserializing javafx.event.EventType
Hi, EventTypes are serializable solely for the purpose of Event serialization (which is serializable because it inherits from java.util.EventObject). When you deserialize Events, the corresponding EventType objects are already initialized, so the EventTypes are correctly mapped. -Martin On 06/28/2014 09:29 AM, Kay McCormick wrote: 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
hg: openjfx/8u-dev/rt: [TEST] RT-37752 Unit test failure in Snapshot1Test after fix for RT-17716
Changeset: 65cabfa41abe Author:Martin Sladecek martin.slade...@oracle.com Date: 2014-06-30 09:53 +0200 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/65cabfa41abe [TEST] RT-37752 Unit test failure in Snapshot1Test after fix for RT-17716 ! tests/system/src/test/java/javafx/scene/Snapshot1Test.java
hg: openjfx/8u-dev/rt: [COMMENT-ONLY] removed obsolete comment after RT-37752 fix
Changeset: 030772161397 Author:Martin Sladecek martin.slade...@oracle.com Date: 2014-06-30 17:21 +0200 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/030772161397 [COMMENT-ONLY] removed obsolete comment after RT-37752 fix ! tests/system/src/test/java/javafx/scene/Snapshot1Test.java
hg: openjfx/8u20/rt: RT-37704: [Regression, Linux] ArrayIndexOutOfBoundsException when trying to open HTMLEditor font name combobox.
Changeset: dab88dec3067 Author:Felipe Heidrich felipe.heidr...@oracle.com Date: 2014-06-26 05:10 -0700 URL: http://hg.openjdk.java.net/openjfx/8u20/rt/rev/dab88dec3067 RT-37704: [Regression, Linux] ArrayIndexOutOfBoundsException when trying to open HTMLEditor font name combobox. ! modules/graphics/src/main/java/com/sun/javafx/font/freetype/FTFontFile.java
hg: openjfx/8u-dev/rt: RT-37751: [Accessibility API] remove getAccessible() and the Accessible
Changeset: 97829a1239b6 Author:Felipe Heidrich felipe.heidr...@oracle.com Date: 2014-06-30 14:37 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/97829a1239b6 RT-37751: [Accessibility API] remove getAccessible() and the Accessible + modules/graphics/src/main/java/com/sun/glass/ui/Accessible.java ! modules/graphics/src/main/java/com/sun/glass/ui/Application.java - modules/graphics/src/main/java/com/sun/glass/ui/PlatformAccessible.java ! modules/graphics/src/main/java/com/sun/glass/ui/View.java ! modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java ! modules/graphics/src/main/java/com/sun/glass/ui/mac/MacApplication.java ! modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java ! modules/graphics/src/main/java/com/sun/glass/ui/win/WinApplication.java ! modules/graphics/src/main/java/com/sun/javafx/scene/NodeHelper.java ! modules/graphics/src/main/java/com/sun/javafx/scene/SceneHelper.java ! modules/graphics/src/main/java/com/sun/javafx/tk/TKSceneListener.java ! modules/graphics/src/main/java/com/sun/javafx/tk/quantum/GlassViewEventHandler.java ! modules/graphics/src/main/java/javafx/scene/Node.java ! modules/graphics/src/main/java/javafx/scene/Scene.java - modules/graphics/src/main/java/javafx/scene/accessibility/Accessible.java
hg: openjfx/8u-dev/rt: [Accessibility] refactoring getContainer() variations
Changeset: 695cedc5afc1 Author:Felipe Heidrich felipe.heidr...@oracle.com Date: 2014-06-30 16:01 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/695cedc5afc1 [Accessibility] refactoring getContainer() variations ! modules/graphics/src/main/java/com/sun/glass/ui/Accessible.java ! modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java ! modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java
hg: openjfx/8u-dev/rt: [Accessibility] restricted method visibility
Changeset: e6d9bdf2f4bc Author:Felipe Heidrich felipe.heidr...@oracle.com Date: 2014-06-30 16:28 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/e6d9bdf2f4bc [Accessibility] restricted method visibility ! modules/graphics/src/main/java/com/sun/glass/ui/Accessible.java ! modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java
hg: openjfx/8u-dev/rt: [BUILD] Create human readable names for auxilliary source directories in rt/graphics
Changeset: 401757399baf Author:flar james.gra...@oracle.com Date: 2014-06-30 17:26 -0700 URL: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/401757399baf [BUILD] Create human readable names for auxilliary source directories in rt/graphics ! netbeans/graphics/nbproject/build-impl.xml ! netbeans/graphics/nbproject/genfiles.properties ! netbeans/graphics/nbproject/project.properties ! netbeans/graphics/nbproject/project.xml