On Jul 17, 2005, at 2:01 AM, erik@jpox.org wrote:

Quoting Craig Russell <Craig.Russell@Sun.COM>:


This exception is not thrown by Method.invoke. It will be caught by
the catch (InvocationTargetException). Reflective invocation wraps
all exceptions in InvocationTargetException which we then unwrap and
rethrow JDOExceptions.

I've added a new test case in JDOHelperTest to test that a
JDOException thrown from getPersistenceManagerFactory will be thrown
to the user.



When the mapGetMethodException is thrown, it is inside the try catch block
catching java.lang.Exception. The JDOException catch there fixes it.



Craig Russell

Architect, Sun Java Enterprise System http://java.sun.com/products/jdo

408 276-5638 mailto:Craig.Russell@sun.com

P.S. A good JDO? O, Gasp!