pascallouisperez / jsonmarshaller

JsonMarshaller is a Java 1.5 library that allows marshalling and unmarshalling of JSON objects to and from entities ("Java classes").
Apache License 2.0
1 stars 0 forks source link

unexpected leaf when unmarshalling polymorphic entity #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When an unexpected leaf node is unmarshalled, the JM has an NPE instead of
explaining the problem to the user.

@Entity(discrinimatorName = "type", subclasses = {})
static class Person {
}

@Entity(discriminator = "person")
static class Employee extends Persion {
}

If you look at

http://code.google.com/p/jsonmarshaller/source/browse/trunk/src/com/twolattes/js
on/PolymorphicEntityDescriptor.java?r=81

The check is done at line 85, but not when the inline code is used.

Original issue reported on code.google.com by pascallo...@gmail.com on 21 Apr 2009 at 8:05

GoogleCodeExporter commented 9 years ago
I cannot reproduce this issue. Is it still open?

Original comment by julien.w...@gmail.com on 27 Apr 2010 at 1:16

GoogleCodeExporter commented 9 years ago
see http://code.google.com/p/jsonmarshaller/source/detail?r=125

Original comment by pascallo...@gmail.com on 27 Apr 2010 at 3:24

GoogleCodeExporter commented 9 years ago

Original comment by julien.w...@gmail.com on 30 Apr 2010 at 4:03