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

Update list of BooleanClause to type Query

    Details

      Description

      The following errors occur when trying to compile the Documentum and Sharepoint Hook:

      Documentum

      L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook>ant compile
      Buildfile: L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\build.xml
      
      compile:
          [javac] Compiling 22 source files to L:\git\private\ee-7.0.x-plugins\shared\dl-repository-shared\classes
          [javac] Note: L:\git\private\ee-7.0.x-plugins\shared\dl-repository-shared\src\com\liferay\repository\external\ExtRepositoryAdapter.java uses or overrides a deprecated API.
          [javac] Note: Recompile with -Xlint:deprecation for details.
          [javac] Note: Some input files use unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
            [jar] Building jar: L:\git\private\ee-7.0.x-plugins\dist\dl-repository-shared-7.0.0.1.jar
           [copy] Copying 1 file to L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\lib
           [copy] Copying 1 file to L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\lib
          [mkdir] Created dir: L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\classes
           [copy] Copying 3 files to L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\lib
           [copy] Copying 5 files to L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\lib
           [copy] Copying 5 files to L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\classes
           [copy] Copied 8 empty directories to 6 empty directories under L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\classes
          [javac] Compiling 22 source files to L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\classes
          [javac] L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\src\com\liferay\documentum\repository\search\DQLQueryBuilder.java:193: error: incompatible types
          [javac]                     List<BooleanClause> booleanClauses = booleanQuery.clauses();
          [javac]                                                                              ^
          [javac]   required: List<BooleanClause>
          [javac]   found:    List<BooleanClause<Query>>
          [javac] L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\src\com\liferay\documentum\repository\search\DQLQueryBuilder.java:213: error: incompatible types
          [javac]                             Query booleanClauseQuery = booleanClause.getQuery();
          [javac]                                                                              ^
          [javac]   required: Query
          [javac]   found:    Object
          [javac] Note: L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\src\com\liferay\documentum\repository\search\DQLQueryBuilder.java uses or overrides a deprecated API.
          [javac] Note: Recompile with -Xlint:deprecation for details.
          [javac] Note: L:\git\private\ee-7.0.x-plugins\hooks\documentum-hook\docroot\WEB-INF\src\com\liferay\documentum\repository\DocumentumRepository.java uses unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
          [javac] 2 errors
      
      BUILD FAILED
      L:\git\private\ee-7.0.x-plugins\build-common.xml:3194: The following error occurred while executing this line:
      : The following error occurred while executing this line:
      L:\git\private\ee-7.0.x-plugins\build-common.xml:688: The following error occurred while executing this line:
      L:\git\private\ee-7.0.x-plugins\build-common.xml:1123: The following error occurred while executing this line:
      L:\git\private\ee-7.0.x-plugins\build-common.xml:996: Compile failed; see the compiler error output for details.
      

      Sharepoint

      L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook>ant war
      Buildfile: L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\build.xml
      
      war:
           [copy] Copying 1 file to L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\lib
           [copy] Copying 1 file to L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\lib
           [copy] Copying 1 file to L:\git\private\ee-7.0.x-plugins\shared\sharepoint-connector-shared\lib
           [copy] Copying 1 file to L:\git\private\ee-7.0.x-plugins\shared\sharepoint-ws-shared\lib
          [mkdir] Created dir: L:\git\private\ee-7.0.x-plugins\shared\sharepoint-ws-shared\classes
           [copy] Copying 4 files to L:\git\private\ee-7.0.x-plugins\shared\sharepoint-ws-shared\classes
           [copy] Copied 12 empty directories to 11 empty directories under L:\git\private\ee-7.0.x-plugins\shared\sharepoint-ws-shared\classes
          [javac] Compiling 155 source files to L:\git\private\ee-7.0.x-plugins\shared\sharepoint-ws-shared\classes
          [javac] Note: Some input files use unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
            [jar] Building jar: L:\git\private\ee-7.0.x-plugins\dist\sharepoint-ws-shared-7.0.0.1.jar
           [copy] Copying 1 file to L:\git\private\ee-7.0.x-plugins\shared\sharepoint-connector-shared\lib
           [copy] Copying 3 files to L:\git\private\ee-7.0.x-plugins\shared\sharepoint-connector-shared\lib
          [mkdir] Created dir: L:\git\private\ee-7.0.x-plugins\shared\sharepoint-connector-shared\classes
           [copy] Copied 11 empty directories to 11 empty directories under L:\git\private\ee-7.0.x-plugins\shared\sharepoint-connector-shared\classes
          [javac] Compiling 70 source files to L:\git\private\ee-7.0.x-plugins\shared\sharepoint-connector-shared\classes
          [javac] Note: L:\git\private\ee-7.0.x-plugins\shared\sharepoint-connector-shared\src\com\liferay\sharepoint\connector\operation\BaseOperation.java uses unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
            [jar] Building jar: L:\git\private\ee-7.0.x-plugins\dist\sharepoint-connector-shared-7.0.0.1.jar
           [copy] Copying 1 file to L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\lib
           [copy] Copying 8 files to L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\lib
          [mkdir] Created dir: L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\classes
           [copy] Copying 5 files to L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\lib
           [copy] Copying 2 files to L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\classes
           [copy] Copied 7 empty directories to 6 empty directories under L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\classes
          [javac] Compiling 9 source files to L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\classes
          [javac] L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\src\com\liferay\sharepoint\repository\search\LiferayQueryExplainer.java:45: error: incompatible types
          [javac]                     Query query = booleanClause.getQuery();
          [javac]                                                         ^
          [javac]   required: Query
          [javac]   found:    Object
          [javac] L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\src\com\liferay\sharepoint\repository\search\SharepointQueryBuilder.java:549: error: incompatible types
          [javac]                     Query query = booleanClause.getQuery();
          [javac]                                                         ^
          [javac]   required: Query
          [javac]   found:    Object
          [javac] Note: Some input files use or override a deprecated API.
          [javac] Note: Recompile with -Xlint:deprecation for details.
          [javac] Note: L:\git\private\ee-7.0.x-plugins\hooks\sharepoint-hook\docroot\WEB-INF\src\com\liferay\sharepoint\repository\SharepointWSRepository.java uses unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
          [javac] 2 errors
      
      BUILD FAILED
      L:\git\private\ee-7.0.x-plugins\build-common.xml:3640: The following error occurred while executing this line:
      : The following error occurred while executing this line:
      L:\git\private\ee-7.0.x-plugins\build-common.xml:2918: The following error occurred while executing this line:
      L:\git\private\ee-7.0.x-plugins\build-common.xml:3005: The following error occurred while executing this line:
      : The following error occurred while executing this line:
      L:\git\private\ee-7.0.x-plugins\build-common.xml:688: The following error occurred while executing this line:
      L:\git\private\ee-7.0.x-plugins\build-common.xml:1123: The following error occurred while executing this line:
      L:\git\private\ee-7.0.x-plugins\build-common.xml:996: Compile failed; see the compiler error output for details.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              albert.lee Albert Lee
              Reporter:
              albert.lee Albert Lee
              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:
                6 years, 25 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 M6