[jbossws-issues] [JBoss JIRA] (JBWS-3873) Web Services can't inherit a JDK8 default method
Jim Ma (JIRA)
issues at jboss.org
Wed Apr 15 02:27:19 EDT 2015
[ https://issues.jboss.org/browse/JBWS-3873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059106#comment-13059106 ]
Jim Ma edited comment on JBWS-3873 at 4/15/15 2:27 AM:
-------------------------------------------------------
PR is sent for this issue : https://github.com/wildfly/wildfly-core/pull/622
It requires wildfly-core 1.0.0.Beta5 to include this fix.
was (Author: jim.ma):
PR is sent for this issue : https://github.com/wildfly/wildfly-core/pull/622
It requires 1.0.0.Beta5 to include this fix.
> Web Services can't inherit a JDK8 default method
> ------------------------------------------------
>
> Key: JBWS-3873
> URL: https://issues.jboss.org/browse/JBWS-3873
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf, jbossws-integration
> Affects Versions: jbossws-cxf-4.3.2, jbossws-cxf-5.0.0.Beta3
> Environment: JDK8
> Reporter: Jan Blizňák
> Assignee: Jim Ma
> Fix For: jbossws-cxf-5.0
>
> Attachments: jdk8-ws-defaultmethod.zip
>
>
> Having simple SEI and POJO webservice with JDK8 feature - default method for interface:
> {code}
> @WebService
> public interface GreeterSEI {
> default public String sayHello() {
> return "Hello, Default";
> }
> }
>
> //----------------------------------------------------------
>
> @WebService
> public class GreeterImpl implements GreeterSEI {}
> {code}
> When you try to execute sayHello method:
> {code}
> Service greeterService = Service.create(...);
> GreeterSEI g = greeterService.getPort(GreeterSEI.class);
>
> Assert.assertEquals("JBoss", greeter.sayHello());
> {code}
> You will get a message-less IllegalStateException on server.
> Expected results:
> no exception, default implementation of method is invoked.
> Or if this is considered unsupported usage, the exception should be more descriptive (ie.: "Method xx not found on implementation class")
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jbossws-issues
mailing list