[ https://issues.apache.org/jira/browse/JDO-696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13194603#comment-13194603 ]
Andy Jefferson commented on JDO-696: ------------------------------------ If you run this against DataNucleus api-jdo 3.0.5-SNAPSHOT (nightly builds) it has a call to JDOImplHelper.assertXXX to check for such properties. This now correctly throws JDOUserException from DataNucleus. These tests still fail since they have an error; you call invokeGetPMF() but this will call invoke on a method, consequently the exception actually thrown by that is InvocationTargetException with the JDOUserException as its cause. Somebody needs to update this test to fix this > Throw on unrecognized javax.jdo options > --------------------------------------- > > Key: JDO-696 > URL: https://issues.apache.org/jira/browse/JDO-696 > Project: JDO > Issue Type: Improvement > Components: api > Affects Versions: JDO 3 maintenance release 1 (3.1) > Reporter: Matthew T. Adams > Assignee: Matthew T. Adams > Fix For: JDO 3 maintenance release 1 (3.1) > > Attachments: JDO-696.patch > > > If a user specifies an unrecognized option that begins with JDO's standard > prefix "javax.jdo.", then an exception (JDOUserException or a sub) should be > thrown by either the implementation or JDOHelper, depending on the > bootstrapping mechanism employed by the user. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira