Permalink
Browse files

Throw an exception when stub class loading fails instead of failing s…

…iliently
  • Loading branch information...
1 parent b520e3b commit bd6ab2783560d275b59f77eacee5580bcd3bd4b2 @stuartwdouglas committed Dec 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/org/jboss/com/sun/corba/se/impl/util/Utility.java
@@ -834,7 +834,7 @@ public static Object loadStub(org.omg.CORBA.Object narrowFrom, Class<?> narrowTo
}
catch (ClassCastException e)
{
- wrapper.classCastExceptionInLoadStub(e);
+ throw wrapper.classCastExceptionInLoadStub(e);
}
PresentationManager.StubFactoryFactory sff = org.jboss.com.sun.corba.se.spi.orb.ORB.getStubFactoryFactory();
@@ -845,7 +845,7 @@ public static Object loadStub(org.omg.CORBA.Object narrowFrom, Class<?> narrowTo
}
catch (Exception err)
{
- wrapper.exceptionInLoadStub(err);
+ throw wrapper.exceptionInLoadStub(err);
}
return result;

0 comments on commit bd6ab27

Please sign in to comment.