OpenPojo / openpojo

POJO Testing & Identity Management Made Trivial
http://openpojo.com
Apache License 2.0
156 stars 40 forks source link

BufferedImage DefaultRandomGenerator Unknown image type ReflectionException #113

Closed panosgit closed 6 years ago

panosgit commented 6 years ago

when a class with BufferedImage. the DefaultRandomGenerator causes Unknown image type causing ReflectionException. Could you please check?

com.openpojo.reflection.exception.ReflectionException at com.openpojo.reflection.exception.ReflectionException.getInstance(ReflectionException.java:51) at com.openpojo.reflection.impl.PojoMethodImpl.invoke(PojoMethodImpl.java:86) at com.openpojo.reflection.construct.InstanceFactory.doGetInstance(InstanceFactory.java:119) at com.openpojo.reflection.construct.InstanceFactory.getInstance(InstanceFactory.java:75) at com.openpojo.reflection.construct.InstanceFactory.getLeastCompleteInstance(InstanceFactory.java:103) at com.openpojo.random.impl.DefaultRandomGenerator.doGenerate(DefaultRandomGenerator.java:63)

Caused by: java.lang.IllegalArgumentException: Unknown image type -881485859 at java.awt.image.BufferedImage.(BufferedImage.java:501) ... 48 more

oshoukry commented 6 years ago

Fixed in 0.8.10.

panosgit commented 6 years ago

Verified ! Thank you 👍