GoogleCodeArchive / piccolo2d

Automatically exported from code.google.com/p/piccolo2d
0 stars 0 forks source link

P3DRectTest test failure on Mac OSX PPC #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$ java -version
java version "1.5.0_20"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20-b02-315)
Java HotSpot(TM) Client VM (build 1.5.0_20-141, mixed mode, sharing)

Failed tests: 
  testClone(edu.umd.cs.piccolox.nodes.P3DRectTest)

-------------------------------------------------------------------------------
Test set: edu.umd.cs.piccolox.nodes.P3DRectTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.112 sec
<<< FAILURE!
testClone(edu.umd.cs.piccolox.nodes.P3DRectTest)  Time elapsed: 0.102 sec 
<<< FAILURE!
junit.framework.AssertionFailedError
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertNotNull(Assert.java:217)
        at junit.framework.Assert.assertNotNull(Assert.java:210)
        at edu.umd.cs.piccolox.nodes.P3DRectTest.testClone(P3DRectTest.java:12)

Original issue reported on code.google.com by heue...@gmail.com on 23 Oct 2009 at 2:22

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
add a marker in r815

Original comment by mr0...@mro.name on 24 Oct 2009 at 2:13

GoogleCodeExporter commented 9 years ago
fixed in r816.

Original comment by mr0...@mro.name on 24 Oct 2009 at 2:23

GoogleCodeExporter commented 9 years ago
spiced up the test in r820 - see the comment at r816

Original comment by mr0...@mro.name on 24 Oct 2009 at 3:30

GoogleCodeExporter commented 9 years ago

Original comment by heue...@gmail.com on 26 Oct 2009 at 7:02