GenealPath and Arc2D NotSerializableException

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
arik
Posts: 12
Joined: Mon Feb 21, 2005 7:20 pm

GenealPath and Arc2D NotSerializableException

Post by arik » Mon Feb 21, 2005 7:37 pm

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 ?

Taqua
JFreeReport Project Leader
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm
Contact:

Post by Taqua » Mon Feb 21, 2005 8:56 pm

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

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Feb 21, 2005 10:14 pm

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.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

arik
Posts: 12
Joined: Mon Feb 21, 2005 7:20 pm

Post by arik » Tue Feb 22, 2005 11:05 am

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 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!
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.

Guest

Post by Guest » Tue Feb 22, 2005 6:49 pm

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 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!
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.

Locked