You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Tilmann Zäschke (JIRA)" <ji...@apache.org> on 2017/03/19 18:31:41 UTC

[jira] [Resolved] (JDO-759) Spec update to clarify whether methods that are documented to be hints must not throw exceptions

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

Tilmann Zäschke resolved JDO-759.
---------------------------------
    Resolution: Fixed

Updated chapter 1 of spec in commit 1787650

> Spec update to clarify whether methods that are documented to be hints must not throw exceptions
> ------------------------------------------------------------------------------------------------
>
>                 Key: JDO-759
>                 URL: https://issues.apache.org/jira/browse/JDO-759
>             Project: JDO
>          Issue Type: Improvement
>          Components: specification
>    Affects Versions: JDO 3.1
>            Reporter: Michael Bouschen
>            Assignee: Tilmann Zäschke
>             Fix For: JDO 3.2
>
>
> If an implementation does not support the method, it should not throw an exception. But if the implementation supports the method, and e.g. there is an illegal argument, it is allowed but is not required to throw IllegalArgumentException. It is not allowed to throw an exception simply to report that the method is not supported.



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