db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@jpox.org
Subject Re: JDOHelper patch
Date Sun, 17 Jul 2005 09:01:11 GMT
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.

View raw message