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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            People

              mkouba@redhat.com Martin Kouba
              rsmeral Ron Šmeral (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: