jsonb-api icon indicating copy to clipboard operation
jsonb-api copied to clipboard

Non-static inner classes support

Open jsonbrobot opened this issue 7 years ago • 2 comments

By the nature of non-static inner classes, they cannot have a default non-argument constructor which makes not possible to deserialize them using default mapping. The spec has to be changed in a way that non-static inner classes support is removed or non-static inner classes are supported only for serialization. See discussion on Yasson issues tracker: https://github.com/eclipse/yasson/issues/49

jsonbrobot avatar Jan 22 '18 10:01 jsonbrobot

  • Issue Imported From: https://github.com/javaee/jsonb-spec/issues/68
  • Original Issue Raised By:@m0mus
  • Original Issue Assigned To: Unassigned

jsonbrobot avatar May 23 '18 22:05 jsonbrobot

Maybe it is related to binding a JSON to an instance:

final var instance = new MyInstance(); jsonb.fromJson(json, instance)

rmannibucau avatar May 07 '21 10:05 rmannibucau