[
https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15224000#comment-15224000
]
Tilmann Zäschke commented on JDO-751:
-------------------------------------
I just realise that throwing an exception during enhancement probably won't be
possible, because after type erasure, the field will simply be of type
{{Optional}}. Chained {{Optional<Optional<?>>}} can only be detected during
serilization.
Should we throw the Exception during serialization?
> Support for Java8 Optional
> --------------------------
>
> Key: JDO-751
> URL: https://issues.apache.org/jira/browse/JDO-751
> Project: JDO
> Issue Type: New Feature
> Components: specification, tck
> Reporter: Andy Jefferson
>
> java.util.Optional provides a feature that is available in other languages.
> Since JDO 3.2 will be for Java8+ then it makes sense to add support for this
> as a "supported persistable type"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)