First, after I read the api doc of jfreechart, I found that JFreeChart implements java.io.Serializable,but when I use ObjectOutputStream.writeObject(Object) to write the JFreeChart, the program stopped with java.io.NotSerializableException.
so I read the source, to my surprise, it does not implements the java.io.Serializable.
Is it a bug of API doc, or the source I read was too old?
by the way,does any Dataset Object implements java.io.Serializable?
problem with serialization
-
- Posts: 2
- Joined: Tue Jul 08, 2003 8:44 am
- Location: hangzhou china
- Contact:
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Most classes are Serializable in the latest release. The code is fairly new though, so I'm expecting some bugs to be found.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Some more improvements have been made for the 0.9.12 release. If anyone wants to help out, some additional JUnit tests to confirm that the serialization is really working would be very helpful.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

