Author: dkulp
Date: Mon Oct 8 11:01:30 2007
New Revision: 582918
URL: http://svn.apache.org/viewvc?rev=582918&view=rev
Log:
Merged revisions 580980 via svnmerge from
https://svn.apache.org/repos/asf/incubator/cxf/trunk
........
r580980 | dkulp | 2007-10-01 10:52:01 -0400 (Mon, 01 Oct 2007) | 2 lines
Update to throw the same MissingResourceException if non-j.u.l logger that
would be thrown if j.u.l is used.
........
Modified:
incubator/cxf/branches/2.0.x-fixes/ (props changed)
incubator/cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
Propchange: incubator/cxf/branches/2.0.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified:
incubator/cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java?rev=582918&r1=582917&r2=582918&view=diff
==============================================================================
---
incubator/cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
(original)
+++
incubator/cxf/branches/2.0.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/LogUtils.java
Mon Oct 8 11:01:30 2007
@@ -175,7 +175,15 @@
}
}
} else {
- return (Logger) cns.newInstance(loggerName,
BundleUtils.getBundleName(cls, name));
+ try {
+ return (Logger) cns.newInstance(loggerName,
BundleUtils.getBundleName(cls, name));
+ } catch (InvocationTargetException ite) {
+ if (ite.getTargetException() instanceof
MissingResourceException) {
+ throw
(MissingResourceException)ite.getTargetException();
+ } else {
+ throw ite;
+ }
+ }
}
} catch (Exception e) {
throw new RuntimeException(e);