Michael Bouschen created JDO-759: ------------------------------------ Summary: 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 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.4#6332)