diff options
Diffstat (limited to 'jurt/com/sun/star/comp')
-rw-r--r-- | jurt/com/sun/star/comp/loader/FactoryHelper.java | 4 | ||||
-rw-r--r-- | jurt/com/sun/star/comp/loader/JavaLoader.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/jurt/com/sun/star/comp/loader/FactoryHelper.java b/jurt/com/sun/star/comp/loader/FactoryHelper.java index 2a712011346a..92b480174769 100644 --- a/jurt/com/sun/star/comp/loader/FactoryHelper.java +++ b/jurt/com/sun/star/comp/loader/FactoryHelper.java @@ -198,7 +198,7 @@ public class FactoryHelper { try { return _constructor.newInstance( args ); } catch (InvocationTargetException invocationTargetException) { - Throwable targetException = invocationTargetException.getTargetException(); + Throwable targetException = invocationTargetException.getCause(); if (targetException instanceof java.lang.RuntimeException) throw (java.lang.RuntimeException)targetException; @@ -274,7 +274,7 @@ public class FactoryHelper { } return instance; } catch (InvocationTargetException invocationTargetException) { - Throwable targetException = invocationTargetException.getTargetException(); + Throwable targetException = invocationTargetException.getCause(); if (targetException instanceof java.lang.RuntimeException) throw (java.lang.RuntimeException)targetException; diff --git a/jurt/com/sun/star/comp/loader/JavaLoader.java b/jurt/com/sun/star/comp/loader/JavaLoader.java index d7f757a701f9..c82f8e941232 100644 --- a/jurt/com/sun/star/comp/loader/JavaLoader.java +++ b/jurt/com/sun/star/comp/loader/JavaLoader.java @@ -353,7 +353,7 @@ public class JavaLoader implements XImplementationLoader, + implementationName + " because " + e.toString() ); } catch ( InvocationTargetException e ) { throw new CannotActivateFactoryException("Can not activate the factory for " - + implementationName + " because " + e.getTargetException().toString() ); + + implementationName + " because " + e.getCause().toString() ); } return returnObject; |