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

Top level entity does not need to have a no argument constructor #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a class A extends a class B and B is annotated as

{{{
@Entity(subclasses = A.class, discriminatorName = ...)
class B { ...
}}}

it should not need a no arg constructor since it will never be constructed
by the library.

Original issue reported on code.google.com by pascallo...@gmail.com on 24 Feb 2008 at 4:54

GoogleCodeExporter commented 9 years ago
The same goes for interfaces and abstract classes, this error is a bit silly:
interface logisticchain.network.NetworkNode does not have a no argument 
constructor.

Of course an interface does not have a constructor...

Original comment by goo...@thenoid.nl on 3 Dec 2009 at 10:49

GoogleCodeExporter commented 9 years ago

Original comment by pascallo...@gmail.com on 7 Sep 2010 at 4:49