Hi.
I had this exception for a while, until I solved it. But I don't like the idea of having fixes in JCommon.jar. I just wanted to know if it's really a bug.
Anyway I modified the org.jfree.io.SerialUtilities class by adding to the writeShape and readShape methods conditions for those two objects (GenealPath and Arc2D).
Is this the place for that kind of information / questions ?
GenealPath and Arc2D NotSerializableException
Hi,
if you post the code these changes or create a patch request on sourceforge, then your changes will be commited to the CVS and you don't have to worry about future versions.
In my opinion, this is a bug of the JDK - I really do not understand, why all shape classes have not been made serializable at all.
Have mo' fun,
said Thomas
if you post the code these changes or create a patch request on sourceforge, then your changes will be commited to the CVS and you don't have to worry about future versions.
In my opinion, this is a bug of the JDK - I really do not understand, why all shape classes have not been made serializable at all.
Have mo' fun,
said Thomas
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Yes, this is an issue in the JDK for a long time:
http://bugs.sun.com/bugdatabase/view_bu ... id=4093004
I'm happy to add code to the SerialUtilities class in JCommon to handle more shapes, if you've written something.
http://bugs.sun.com/bugdatabase/view_bu ... id=4093004
I'm happy to add code to the SerialUtilities class in JCommon to handle more shapes, if you've written something.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


I'm developing with many open-source and non open-source products and I have to say that, it was a fast reply, I'm very impressed. Thank you!david.gilbert wrote:Yes, this is an issue in the JDK for a long time:
http://bugs.sun.com/bugdatabase/view_bu ... id=4093004
I'm happy to add code to the SerialUtilities class in JCommon to handle more shapes, if you've written something.
I'm working with this implementation for our web application and you are doing a great job. I might have a few more issues to share.
I will post my code for adding those shapes.
I'm developing with many open-source and non open-source products and I have to say that, it was a fast reply, I'm very impressed. Thank you!david.gilbert wrote:Yes, this is an issue in the JDK for a long time:
http://bugs.sun.com/bugdatabase/view_bu ... id=4093004
I'm happy to add code to the SerialUtilities class in JCommon to handle more shapes, if you've written something.
I'm working with this implementation for our web application and you are doing a great job. I might have a few more issues to share.
I will post my code for adding those shapes.