diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-06-26 14:59:11 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-06-26 14:59:11 -0700 |
commit | 3a5f968f8487eb1f91769ab8704a9609dcbe9efe (patch) | |
tree | 469fc394f1e1e9ba0ef615c991faa524af4a21d0 /java/src/IceBox/ServiceManagerI.java | |
parent | updating CHANGES for bug 4126 (diff) | |
download | ice-3a5f968f8487eb1f91769ab8704a9609dcbe9efe.tar.bz2 ice-3a5f968f8487eb1f91769ab8704a9609dcbe9efe.tar.xz ice-3a5f968f8487eb1f91769ab8704a9609dcbe9efe.zip |
more fixes for bug 4126
Diffstat (limited to 'java/src/IceBox/ServiceManagerI.java')
-rw-r--r-- | java/src/IceBox/ServiceManagerI.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/java/src/IceBox/ServiceManagerI.java b/java/src/IceBox/ServiceManagerI.java index 57c5ba9cf14..0f12e9263e3 100644 --- a/java/src/IceBox/ServiceManagerI.java +++ b/java/src/IceBox/ServiceManagerI.java @@ -481,7 +481,13 @@ public class ServiceManagerI extends _ServiceManagerDisp info.args = args; try { - Class<?> c = Class.forName(className); + Class<?> c = IceInternal.Util.findClass(className); + if(c == null) + { + FailureException e = new FailureException(); + e.reason = "ServiceManager: class " + className + " not found"; + throw e; + } java.lang.Object obj = c.newInstance(); try { @@ -494,13 +500,6 @@ public class ServiceManagerI extends _ServiceManagerDisp throw e; } } - catch(ClassNotFoundException ex) - { - FailureException e = new FailureException(); - e.reason = "ServiceManager: class " + className + " not found"; - e.initCause(ex); - throw e; - } catch(IllegalAccessException ex) { FailureException e = new FailureException(); |