[NSWI080] Task 2 - Java - Accessing (non existing) optional field

Matúš Maďar semicco2 at gmail.com
Sun Apr 3 01:02:36 CEST 2022


Hello all.
I haven't found anything in documentation so I'd like to ask. Did anyone
encounter and can explain, what is the expected behaviour in Java, when you
try to access optional field in service? E.g. if ItemA doesn't have fieldZ
defined; will it throw some exception or will it just return default value
of the type of field?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi080/attachments/20220403/b667060e/attachment.htm>


More information about the NSWI080 mailing list