Ron Šmeral created WELD-1124:
--------------------------------

             Summary: ResourceProducer from Weld 1.1 testsuite won't compile on 
JDK 7
                 Key: WELD-1124
                 URL: https://issues.jboss.org/browse/WELD-1124
             Project: Weld
          Issue Type: Bug
         Environment: JDK 7, Weld 1.2.0-SNAPSHOT testsuite
            Reporter: Ron Šmeral


The testsuite doesn't compile on any JDK 7, tested on Oracle, IBM and OpenJDK.
The problem seems to be in the class 
org.jboss.weld.tests.resources.ws.ResourceProducer. According to the 
documentation of {{value}} field of {{WebServiceRef}}, it should reference 
??"the service class, *always a type extending javax.xml.ws.Service*"??, which 
is not true for the class {{TranslatorService}} referenced by {{WebServiceRef}} 
in {{ResourceProducer}}.

The compilation fails with: 

{noformat}
.../dev/weld/weld/tests-arquillian/src/test/java/org/jboss/weld/tests/resources/ws/ResourceProducer.java:[26,39]
 error: incompatible types
{noformat}

After changing the {{TranslatorService}} to extend {{Service}}, the class 
compiles and the test ({{testWebServiceResourceDeclaration}}) passes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to