Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1124

ResourceProducer from Weld 1.1 testsuite won't compile on JDK 7

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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:

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

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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mkouba Martin Kouba
                  Reporter:
                  rsmeral Ron Šmeral
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: