Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1196686

Summary: [QE] (6.4.z) Web Services can't inherit a JDK8 default method
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jan Blizňák <jbliznak>
Component: Web ServicesAssignee: baranowb <bbaranow>
Status: CLOSED CURRENTRELEASE QA Contact: Peter Mackay <pmackay>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: bbaranow, bmaxwell, cdewolf, jawilson, jmartisk, msochure, pmackay, psotirop, rstancel, tmiyargi
Target Milestone: CR1   
Target Release: EAP 6.4.13   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
JDK8 (Oracle 1.8.0_20)
Last Closed: 2017-02-03 16:41:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1386335    
Attachments:
Description Flags
test project showing failures none

Description Jan Blizňák 2015-02-26 14:28:10 UTC
Created attachment 995649 [details]
test project showing failures

Having simple SEI and POJO webservice with JDK8 feature - default method for interface:

@WebService
public interface GreeterSEI {
   default public String sayHello() {
      return "Hello, Default";
   }
}
 
//----------------------------------------------------------
 
@WebService
public class GreeterImpl implements GreeterSEI {}



When you try to execute sayHello method:

Service greeterService = Service.create(...);
GreeterSEI g = greeterService.getPort(GreeterSEI.class);
 
Assert.assertEquals("JBoss", greeter.sayHello());

You will get a message-less IllegalStateException on server:




How reproducible:
always


Steps to Reproduce:
1. get attached test project
2. mvn test -Djboss.home=/path/to/server


Actual results:
message-less IllegalStateException on server thrown

Expected results:
no exception, default implementation of method is invoked.
Or if this is considered unsupported usage, the exception must be more descriptive (ie.: "Method xx not found on implementation class")

Comment 1 Rostislav Svoboda 2015-03-02 11:08:06 UTC
Proposing to 6.4.z stream

Comment 6 JBoss JIRA Server 2015-04-07 21:39:09 UTC
Brian Stansberry <brian.stansberry> updated the status of jira WFLY-4407 to Resolved

Comment 7 JBoss JIRA Server 2015-06-12 08:59:38 UTC
Jim Ma <ema> updated the status of jira JBWS-3873 to Resolved

Comment 9 JBoss JIRA Server 2015-08-05 09:22:59 UTC
Alessio Soldano <asoldano> updated the status of jira JBWS-3873 to Closed

Comment 10 JBoss JIRA Server 2015-09-16 19:40:32 UTC
Brian Stansberry <brian.stansberry> updated the status of jira WFCORE-579 to Resolved

Comment 11 JBoss JIRA Server 2015-11-02 09:54:23 UTC
Bartosz Baranowski <bbaranow> updated the status of jira WFLY-4404 to Resolved

Comment 13 Panagiotis Sotiropoulos 2015-11-06 09:55:53 UTC
Test added : https://github.com/panossot/eap-additional-testsuite/tree/master/ws/jdk8/src/test/java/org/jboss/test/integration/ws/defaultmethods

1. Make sure that JBOSS_HOME is set with the path to your JBOSS EAP directory.
2. Build and execute the additional testsuite activating the EAP JDK8 profile (mvn clean install -Deap.jdk8).

Comment 14 Mike McCune 2016-03-28 22:18:06 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 15 Peter Mackay 2017-01-17 15:36:14 UTC
Verified with EAP 6.4.13.CP.CR2.

Comment 16 Petr Penicka 2017-02-03 16:41:34 UTC
Released with EAP 6.4.13 on Feb 02 2017.