Closed GoogleCodeExporter closed 9 years ago
A more complete stack trace:
java.io.NotSerializableException: java.awt.geom.GeneralPath
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at
edu.umd.cs.piccolo.util.PObjectOutputStream.recordUnconditionallyWritten(PObject
OutputStream.java:168)
at
edu.umd.cs.piccolo.util.PObjectOutputStream.writeObjectTree(PObjectOutputStream.
java:110)
at edu.umd.cs.piccolo.util.PObjectOutputStream.toByteArray(PObjectOutputStream.java:83)
at edu.umd.cs.piccolo.PNode.clone(PNode.java:872)
at edu.umd.cs.piccolox.nodes.P3DRectTest.testClone(P3DRectTest.java:42)
I'm not quite sure why this only happens on Mac OSX PPC with jdk 1.5. If
GeneralPath
is not serializable on that platform, shouldn't it also be not serializable on
every
other platform?
Original comment by heue...@gmail.com
on 23 Oct 2009 at 7:40
actually it's serializable not before jdk 1.6 no matter which platform.
no: http://java.sun.com/j2se/1.4.2/docs/api/java/awt/geom/GeneralPath.html
no: http://java.sun.com/j2se/1.5.0/docs/api/java/awt/geom/GeneralPath.html
yes: http://java.sun.com/javase/6/docs/api/java/awt/geom/GeneralPath.html
Original comment by mr0...@mro.name
on 24 Oct 2009 at 1:42
add a marker in r815
Original comment by mr0...@mro.name
on 24 Oct 2009 at 2:13
fixed in r816.
Original comment by mr0...@mro.name
on 24 Oct 2009 at 2:23
spiced up the test in r820 - see the comment at r816
Original comment by mr0...@mro.name
on 24 Oct 2009 at 3:30
Original comment by heue...@gmail.com
on 26 Oct 2009 at 7:02
Original issue reported on code.google.com by
heue...@gmail.com
on 23 Oct 2009 at 2:22