[jira] [Updated] (JDO-735) Make PersistenceManager and Query support AutoCloseable (JDK1.7+)

2017-03-12 Thread Michael Bouschen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JDO-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Bouschen updated JDO-735:
-
Attachment: JDO-735-patch4.txt

Attached you find a new patch for review: JDO-735-patch4.txt. 
It checks for JDOUserExceptions thrown by the JDO implementation to indicate a 
closed resouce is used and it checks isEmpty on a closed query result.

> Make PersistenceManager and Query support AutoCloseable (JDK1.7+)
> -
>
> Key: JDO-735
> URL: https://issues.apache.org/jira/browse/JDO-735
> Project: JDO
>  Issue Type: New Feature
>  Components: api, specification, tck
>Reporter: Andy Jefferson
>Assignee: Michael Bouschen
> Fix For: JDO 3.2
>
> Attachments: CloseWithActiveTxRollsBack.java, JDO-735-patch4.txt
>
>
> So then it can be used with JDK1.7+ try-with-resources, as per 
> http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (JDO-735) Make PersistenceManager and Query support AutoCloseable (JDK1.7+)

2017-01-18 Thread Michael Bouschen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JDO-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Bouschen updated JDO-735:
-
Attachment: (was: JDO-735-patch2.txt)

> Make PersistenceManager and Query support AutoCloseable (JDK1.7+)
> -
>
> Key: JDO-735
> URL: https://issues.apache.org/jira/browse/JDO-735
> Project: JDO
>  Issue Type: New Feature
>  Components: api, specification, tck
>Reporter: Andy Jefferson
>Assignee: Michael Bouschen
> Fix For: JDO 3.2
>
> Attachments: CloseWithActiveTxRollsBack.java, JDO-735-patch3.txt
>
>
> So then it can be used with JDK1.7+ try-with-resources, as per 
> http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (JDO-735) Make PersistenceManager and Query support AutoCloseable (JDK1.7+)

2017-01-18 Thread Michael Bouschen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JDO-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Bouschen updated JDO-735:
-
Attachment: JDO-735-patch3.txt

Attached you find a new patch JDO-735-patch3.txt for review. It verifies that 
the query instance is still usable after the try-with-resouce block (and the 
same for the extent).

> Make PersistenceManager and Query support AutoCloseable (JDK1.7+)
> -
>
> Key: JDO-735
> URL: https://issues.apache.org/jira/browse/JDO-735
> Project: JDO
>  Issue Type: New Feature
>  Components: api, specification, tck
>Reporter: Andy Jefferson
>Assignee: Michael Bouschen
> Fix For: JDO 3.2
>
> Attachments: CloseWithActiveTxRollsBack.java, JDO-735-patch3.txt
>
>
> So then it can be used with JDK1.7+ try-with-resources, as per 
> http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (JDO-735) Make PersistenceManager and Query support AutoCloseable (JDK1.7+)

2017-01-06 Thread Michael Bouschen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JDO-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Bouschen updated JDO-735:
-
Attachment: JDO-735-patch2.txt

Attached you find a patch JDO-735-patch2.txt for review.

> Make PersistenceManager and Query support AutoCloseable (JDK1.7+)
> -
>
> Key: JDO-735
> URL: https://issues.apache.org/jira/browse/JDO-735
> Project: JDO
>  Issue Type: New Feature
>  Components: api, specification, tck
>Reporter: Andy Jefferson
>Assignee: Michael Bouschen
> Fix For: JDO 3.2
>
> Attachments: CloseWithActiveTxRollsBack.java, JDO-735-patch2.txt
>
>
> So then it can be used with JDK1.7+ try-with-resources, as per 
> http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (JDO-735) Make PersistenceManager and Query support AutoCloseable (JDK1.7+)

2017-01-06 Thread Michael Bouschen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JDO-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Bouschen updated JDO-735:
-
Attachment: (was: JDO-735-patch.txt)

> Make PersistenceManager and Query support AutoCloseable (JDK1.7+)
> -
>
> Key: JDO-735
> URL: https://issues.apache.org/jira/browse/JDO-735
> Project: JDO
>  Issue Type: New Feature
>  Components: api, specification, tck
>Reporter: Andy Jefferson
>Assignee: Michael Bouschen
> Fix For: JDO 3.2
>
> Attachments: CloseWithActiveTxRollsBack.java, JDO-735-patch2.txt
>
>
> So then it can be used with JDK1.7+ try-with-resources, as per 
> http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (JDO-735) Make PersistenceManager and Query support AutoCloseable (JDK1.7+)

2017-01-02 Thread Michael Bouschen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JDO-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Bouschen updated JDO-735:
-
Attachment: JDO-735-patch.txt

Attached you find a patch for review adding two TCK test classes AutoCloseable 
as proposed (one for query and one for extent).

> Make PersistenceManager and Query support AutoCloseable (JDK1.7+)
> -
>
> Key: JDO-735
> URL: https://issues.apache.org/jira/browse/JDO-735
> Project: JDO
>  Issue Type: New Feature
>  Components: api, specification, tck
>Reporter: Andy Jefferson
>Assignee: Michael Bouschen
> Fix For: JDO 3.2
>
> Attachments: CloseWithActiveTxRollsBack.java, JDO-735-patch.txt
>
>
> So then it can be used with JDK1.7+ try-with-resources, as per 
> http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (JDO-735) Make PersistenceManager and Query support AutoCloseable (JDK1.7+)

2015-08-24 Thread Andy Jefferson (JIRA)

 [ 
https://issues.apache.org/jira/browse/JDO-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Jefferson updated JDO-735:
---
Attachment: CloseWithActiveTxRollsBack.java

Test for call of close() when active tx, to check that it rolls back. This 
should REPLACE CloseThrowsExceptionWhenActiveTx.java

 Make PersistenceManager and Query support AutoCloseable (JDK1.7+)
 -

 Key: JDO-735
 URL: https://issues.apache.org/jira/browse/JDO-735
 Project: JDO
  Issue Type: New Feature
  Components: api, specification, tck
Reporter: Andy Jefferson
 Fix For: JDO 3.2

 Attachments: CloseWithActiveTxRollsBack.java


 So then it can be used with JDK1.7+ try-with-resources, as per 
 http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (JDO-735) Make PersistenceManager and Query support AutoCloseable (JDK1.7+)

2015-04-03 Thread Michael Bouschen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JDO-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Bouschen updated JDO-735:
-
Summary: Make PersistenceManager and Query support AutoCloseable (JDK1.7+)  
(was: Make PersistenceManager support AutoCloseable (JDK1.7+))

 Make PersistenceManager and Query support AutoCloseable (JDK1.7+)
 -

 Key: JDO-735
 URL: https://issues.apache.org/jira/browse/JDO-735
 Project: JDO
  Issue Type: New Feature
  Components: api, specification, tck
Reporter: Andy Jefferson
 Fix For: JDO 3.2


 So then it can be used with JDK1.7+ try-with-resources, as per 
 http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)