[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-07-08 Thread Craig L Russell (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15367845#comment-15367845 ] Craig L Russell commented on JDO-751: - I'm still not convinced that optionalPC.orElse(anything) has value

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-07-08 Thread Craig L Russell (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15367840#comment-15367840 ] Craig L Russell commented on JDO-751: - Starting to work on the specification: Persistent Object Model

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-06-23 Thread Andy Jefferson (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15346784#comment-15346784 ] Andy Jefferson commented on JDO-751: 1. I said DN equates a transient to null (nothing else reasonable to

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-06-23 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15346743#comment-15346743 ] Tilmann Zäschke commented on JDO-751: - 1. About not being able to handle transient PCs, what about the

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-06-19 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15338646#comment-15338646 ] Tilmann Zäschke commented on JDO-751: - Thanks for the feedback. 1. Yes, you are right, and I do not

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-06-18 Thread Andy Jefferson (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15337814#comment-15337814 ] Andy Jefferson commented on JDO-751: Comments from cursory scan of the patch 1. You use a transient PC

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-06-04 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15315498#comment-15315498 ] Tilmann Zäschke commented on JDO-751: - As mentioned in the telecon, I found that the query

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-04-17 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15244689#comment-15244689 ] Tilmann Zäschke commented on JDO-751: - Interesting. I had tried it with variables, but they only gave me

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-04-15 Thread Craig L Russell (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15243188#comment-15243188 ] Craig L Russell commented on JDO-751: - Just looked again at the class file metadata available at

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-04-15 Thread Craig L Russell (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15243176#comment-15243176 ] Craig L Russell commented on JDO-751: - Tilmann: It might make more sense simply to say that the behavior

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-04-04 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15224000#comment-15224000 ] Tilmann Zäschke commented on JDO-751: - I just realise that throwing an exception during enhancement

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-04-01 Thread Craig L Russell (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15221921#comment-15221921 ] Craig L Russell commented on JDO-751: - Regarding Optional I think we should throw

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-27 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15170485#comment-15170485 ] Tilmann Zäschke commented on JDO-751: - The argument or supporting {{orElse()}} would be that these are

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-19 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15155124#comment-15155124 ] Renato Garcia commented on JDO-751: --- {quote} MemberMetadata.getFieldType should return "Optional". I don't

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-19 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15155121#comment-15155121 ] Renato Garcia commented on JDO-751: --- {quote} I also think (as I mentioned earlier) properties of the

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-19 Thread Craig L Russell (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15154475#comment-15154475 ] Craig L Russell commented on JDO-751: - I'd like to think how to accommodate object databases, where the

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-19 Thread Craig L Russell (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15154457#comment-15154457 ] Craig L Russell commented on JDO-751: - Having begun to work with JavaScript over the last few years, I

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-19 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15153925#comment-15153925 ] Tilmann Zäschke commented on JDO-751: - {quote} {{Optional.get}} will never give you back a {{null}}, it

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-18 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15153660#comment-15153660 ] Renato Garcia commented on JDO-751: --- {quote} I still don't get the difference between empty and null.

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-18 Thread Craig L Russell (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15152861#comment-15152861 ] Craig L Russell commented on JDO-751: - Here's another try at a solution. Optional is a Java domain

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-18 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15152197#comment-15152197 ] Tilmann Zäschke commented on JDO-751: - @Craig Sorry, I think overlooked your post. You raised an

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-18 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15152165#comment-15152165 ] Tilmann Zäschke commented on JDO-751: - I still don't get the difference between empty and null.

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-13 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15146397#comment-15146397 ] Renato Garcia commented on JDO-751: --- What about the type of the returned field in the JDOQL result clause

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-13 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15146400#comment-15146400 ] Renato Garcia commented on JDO-751: --- [~apacheb...@tkuhn.de] I've edited to my comment to clarify what I

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-13 Thread Craig L Russell (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15146301#comment-15146301 ] Craig L Russell commented on JDO-751: - I'd suggest we consider a field of type Optional to be of type T

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144286#comment-15144286 ] Renato Garcia commented on JDO-751: --- What would be the type of the parameter for a variable in a query?

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144287#comment-15144287 ] Renato Garcia commented on JDO-751: --- Regarding "shortcuts", I don't see why they change semantics? Aren't

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144519#comment-15144519 ] Renato Garcia commented on JDO-751: --- I don't think Optional can reference null, it's either a value or

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144474#comment-15144474 ] Tilmann Zäschke commented on JDO-751: - I think there still is a problem when writing {{postcode == null}}

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144507#comment-15144507 ] Renato Garcia commented on JDO-751: --- You shouldn't have null references when using Optional, it defeats the

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144516#comment-15144516 ] Renato Garcia commented on JDO-751: --- In case we would like to make it not ambiguous in JDOQL how would this

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144485#comment-15144485 ] Tilmann Zäschke commented on JDO-751: - I don't think querying for {{null}} is conceptually wrong. It

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144601#comment-15144601 ] Tilmann Zäschke commented on JDO-751: - I completely agree, that defeats the purpose of {{Optional}} :-).

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144615#comment-15144615 ] Tilmann Zäschke commented on JDO-751: - ??How is this related to the "shortcuts" changing semantics, as in

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144996#comment-15144996 ] Tilmann Zäschke commented on JDO-751: - Just to repeat what was send at the end of the telecon: I favour

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145027#comment-15145027 ] Tilmann Zäschke commented on JDO-751: - Maybe it should also be considered whether JDO may at some point

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145294#comment-15145294 ] Renato Garcia commented on JDO-751: --- {quote}I think it is related because auto-dereferencing means that you

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-12 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145293#comment-15145293 ] Renato Garcia commented on JDO-751: --- {quote}Fun question (not a likely use-case): How do we treat

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-11 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15142722#comment-15142722 ] Tilmann Zäschke commented on JDO-751: - ??perhaps it should be also true that querying with null on an

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-11 Thread Craig L Russell (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15143012#comment-15143012 ] Craig L Russell commented on JDO-751: - I'd like to propose that Optional be strictly a

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-10 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15140715#comment-15140715 ] Tilmann Zäschke commented on JDO-751: - But what happens in your example if {{foo}} is a variable and is

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-10 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15142108#comment-15142108 ] Renato Garcia commented on JDO-751: --- {quote} But what happens in your example if foo is a variable and is

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-09 Thread Andy Jefferson (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15138522#comment-15138522 ] Andy Jefferson commented on JDO-751: >From Apache JDO "minutes" Q. Does it make sense to support

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-09 Thread JIRA
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15138608#comment-15138608 ] Tilmann Zäschke commented on JDO-751: - I completely agree with the answers. Just to clarify the first

[jira] [Commented] (JDO-751) Support for Java8 Optional

2016-02-09 Thread Renato Garcia (JIRA)
[ https://issues.apache.org/jira/browse/JDO-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15140104#comment-15140104 ] Renato Garcia commented on JDO-751: --- {quote} Just to clarify the first question: I see that 'Optional'