incubator-yoko-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r528580 - /incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/RMIServant.java
Date Fri, 13 Apr 2007 18:42:07 GMT
Author: rickmcguire
Date: Fri Apr 13 11:42:07 2007
New Revision: 528580

URL: http://svn.apache.org/viewvc?view=rev&rev=528580
Log:
YOKO-342 RMIServant.setTarget() gets ClassCastException

Modified:
    incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/RMIServant.java

Modified: incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/RMIServant.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/RMIServant.java?view=diff&rev=528580&r1=528579&r2=528580
==============================================================================
--- incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/RMIServant.java (original)
+++ incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/RMIServant.java Fri
Apr 13 11:42:07 2007
@@ -177,8 +177,7 @@
             throw new IllegalArgumentException();
         }
 
-        _descriptor = ((RemoteDescriptor) _state.getTypeRepository()
-                .getDescriptor(target.getClass())).getRemoteInterface();
+        _descriptor = _state.getTypeRepository().getRemoteDescriptor(target.getClass()).getRemoteInterface();
 
         if (_descriptor == null) {
             throw new RuntimeException("remote classes not supported");



Mime
View raw message