cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r821012 - in /cxf/trunk: rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxwsServiceBuilder.java tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java
Date Fri, 02 Oct 2009 13:26:45 GMT
Author: dkulp
Date: Fri Oct  2 13:26:44 2009
New Revision: 821012

URL: http://svn.apache.org/viewvc?rev=821012&view=rev
Log:
[CXF-2436] Allow java.net.Remote interface for sei

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxwsServiceBuilder.java
    cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxwsServiceBuilder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxwsServiceBuilder.java?rev=821012&r1=821011&r2=821012&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxwsServiceBuilder.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxwsServiceBuilder.java
Fri Oct  2 13:26:44 2009
@@ -41,14 +41,6 @@
         setServiceFactory(serviceFactory);
         setBindingConfig(new JaxWsSoapBindingConfiguration(serviceFactory));
     }
-
-    @Override
-    public void validate() {
-        Class clz = getServiceClass();
-        if (java.rmi.Remote.class.isAssignableFrom(clz)) {
-            throw new RuntimeException("JAXWS SEIs may not implement the java.rmi.Remote
interface.");
-        }
-    }
     
     public File getOutputFile() {
         JaxWsImplementorInfo jaxwsImpl = serviceFactory.getJaxWsImplementorInfo();

Modified: cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java?rev=821012&r1=821011&r2=821012&view=diff
==============================================================================
--- cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java
(original)
+++ cxf/trunk/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java
Fri Oct  2 13:26:44 2009
@@ -363,17 +363,6 @@
     }
 
     @Test
-    public void testWrongInterface() throws Exception {
-        env.put(ToolConstants.CFG_CLASSNAME, "org.apache.cxf.tools.java2wsdl.processor.Hello");
-        processor.setEnvironment(env);
-        try {
-            processor.process();
-        } catch (RuntimeException e) {
-            assertEquals("JAXWS SEIs may not implement the java.rmi.Remote interface.", e.getMessage());
-        }
-    }
-
-    @Test
     public void testDateAdapter() throws Exception {
         env.put(ToolConstants.CFG_CLASSNAME, "org.apache.cxf.tools.fortest.date.EchoDate");
         env.put(ToolConstants.CFG_OUTPUTFILE, output.getPath() + "/echo_date.wsdl");



Mime
View raw message