[ 
https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15144615#comment-15144615
 ] 

Tilmann Zäschke edited comment on JDO-751 at 2/12/16 2:15 PM:
--------------------------------------------------------------

??How is this related to the "shortcuts" changing semantics, as in "shorcuts" 
meaning auto dereference of Optional fields???
I think it is related because auto-dereferencing means that you assume that the 
reference to the Optional cannot be null.

??I don't think Optional can reference null, it's either a value or "empty".??
So how would one check for "empty"? Would the only possibility be via 
"isPresent()"? 

??In case we would like to make it not ambiguous in JDOQL how would this be 
implemented in a RDBMS for instance???
I don't know. But I'm not sure that the difficulty of implementing a feature in 
an RDBMS should guide the design of an API for object oriented persistence?



was (Author: tilmann):
??How is this related to the "shortcuts" changing semantics, as in "shorcuts" 
meaning auto dereference of Optional fields? ??
I think it is related because auto-dereferencing means that you assume that the 
reference to the Optional cannot be null.

??I don't think Optional can reference null, it's either a value or "empty".??
So how would one check for "empty"? Would the only possibility be via 
"isPresent()"? 

??In case we would like to make it not ambiguous in JDOQL how would this be 
implemented in a RDBMS for instance? ??
I don't know. But I'm not sure that the difficulty of implementing a feature in 
an RDBMS should guide the design of an API for object oriented persistence?


> 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)

Reply via email to