Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-34868

Service builder cannot compile SOAP services for certain List return types

    Details

      Description

      Service builder fails to compile the SOAP service methods when the return type is 1) a list of a portal model (like List<Group>, List<Repository>) and 2) not the service entity type.

      For example, an entity type of DLSync with the service:

      public List<Group> getUserSites() {
      return null;
      }

      will throw the following exception during compilation:

      [javac] 1. ERROR in /Users/liferay/Desktop/dev/liferay/trunk/plugins/portlets/sync-portlet/docroot/WEB-INF/src/com/liferay/sync/service/http/DLSyncServiceSoap.java (at line 203)
      [javac] return com.liferay.sync.model.DLSyncSoap.toSoapModels(returnValue);
      [javac] ^^^^^^^^^^^^
      [javac] The method toSoapModels(DLSync[]) in the type DLSyncSoap is not applicable for the arguments (List<Group>)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.young Michael Young
              Reporter:
              dennis.ju Dennis Ju
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 39 weeks, 1 day ago

                  Packages

                  Version Package
                  6.0.X EE
                  6.1.30 EE GA3
                  6.2.0 CE M6