wjc272008 / jmonkeyengine

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

com.jme3.shadow.AbstractShadowRenderer.read() throws exception #613

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
AbstractShadowRenderer implements Savable. However, this was apparently never 
tested because its read() method erroneously invokes readInt() for 
shadowMapSize which is (surprisingly) a float, not an int.  Here's the 
resulting exception (jME3 trunk updated to r10904): 

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.ClassCastException: java.lang.Float cannot be cast to 
java.lang.Integer
    at com.jme3.export.binary.BinaryInputCapsule.readInt(BinaryInputCapsule.java:401)
    at com.jme3.shadow.AbstractShadowRenderer.read(AbstractShadowRenderer.java:607)
    at com.jme3.shadow.DirectionalLightShadowRenderer.read(DirectionalLightShadowRenderer.java:307)
    at com.jme3.export.binary.BinaryImporter.readObject(BinaryImporter.java:340)
    at com.jme3.export.binary.BinaryInputCapsule.readSavable(BinaryInputCapsule.java:457)

Original issue reported on code.google.com by sg...@sonic.net on 6 Dec 2013 at 3:45

GoogleCodeExporter commented 9 years ago
I'll handle this one.

Original comment by sg...@sonic.net on 14 Mar 2014 at 4:01

GoogleCodeExporter commented 9 years ago
I forgot to provide links:

https://code.google.com/p/jmonkeyengine/source/detail?r=11078

https://code.google.com/p/jmonkeyengine/source/detail?r=11077

Original comment by sg...@sonic.net on 14 Mar 2014 at 4:07