[weld-issues] [JBoss JIRA] (WELD-1124) ResourceProducer from Weld 1.1 testsuite won't compile on JDK 7
Martin Kouba (JIRA)
jira-events at lists.jboss.org
Fri May 4 07:09:17 EDT 2012
[ https://issues.jboss.org/browse/WELD-1124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Kouba resolved WELD-1124.
--------------------------------
Resolution: Duplicate Issue
> 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
> Assignee: Martin Kouba
>
> 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
More information about the weld-issues
mailing list