Hi,

More likely the problem is down to having a field as Optional<Object>

The test doesn't actually have Optional<Object>, but it does have:

Optional<?> optionalAny;
Optional optionalNoGenerics;

I suppose these would not be allowed either (because they are mostly equivalent to Optional<Object>)?

Regards,
Tilmann

On 31-May-16 11:53, Andy Jefferson wrote:
Hi,
thanks. Indeed it seems that the error is triggered by declaring a field
as 'Optional'.
That I doubt, due to established tests
https://github.com/datanucleus/tests/blob/master/jdo/general/src/test/org/datanucleus/tests/types/OptionalTest.java


More likely the problem is down to having a field as Optional<Object>, which is 
a minority interest use-case IMHO (which can often be symptomatic of a problem in a 
model, with lack of use of inheritance etc). Perhaps try nightly builds of jars if 
having problems.

Next step is likely to update the implementation.
DataNucleus has supported Optional since 5.0.0-m1, and tested on Optional<{basic}>, 
Optional<PC> (see link). It hasn't been tested on Optional<Object> where Object 
refers to potentially multiple types of PC.



Regards


Reply via email to