Bug 1196686 - [QE] (6.4.z) Web Services can't inherit a JDK8 default method
Summary: [QE] (6.4.z) Web Services can't inherit a JDK8 default method
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web Services
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: CR1
: EAP 6.4.13
Assignee: baranowb
QA Contact: Peter Mackay
URL:
Whiteboard:
Depends On:
Blocks: eap6413-payload
TreeView+ depends on / blocked
 
Reported: 2015-02-26 14:28 UTC by Jan Blizňák
Modified: 2017-06-28 10:35 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
JDK8 (Oracle 1.8.0_20)
Last Closed: 2017-02-03 16:41:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
test project showing failures (6.13 KB, application/zip)
2015-02-26 14:28 UTC, Jan Blizňák
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBWS-3873 0 Major Closed Web Services can't inherit a JDK8 default method 2017-11-01 10:19:31 UTC
Red Hat Issue Tracker WFCORE-579 0 Critical Resolved ProxyMetadataSource does not return JDK8 'default' methods from interfaces 2017-11-01 10:19:31 UTC
Red Hat Issue Tracker WFCORE-725 0 Major Resolved Remove ClassIndex from the server module 2017-11-01 10:19:31 UTC
Red Hat Issue Tracker WFLY-4404 0 Major Resolved View does not inherit 'default' methods from interfaces( JDK8 ) 2017-11-01 10:19:31 UTC
Red Hat Issue Tracker WFLY-4407 0 Major Resolved Upgrade wildfly-core to 1.0.0.Beta1 2017-11-01 10:19:31 UTC
Red Hat Knowledge Base (Solution) 3093271 0 None None None 2017-06-28 10:35:27 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.