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

Compile failed when trying to deploy some test plugins

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: Testing > Plugins
    • Labels:
    • Fix Priority:
      3

      Description

      Steps to Reproduce:

      1. In file /liferay-plugins/build.*.properties, update property 'app.server.parent.dir' points to a master bundle.
      2. Go into /liferay-plugins/portlets/test-transaction-portlet. Run command ant all.

      Expected Results:
      Plugin should be built successfully.

      Actual Results:
      Compile failed with error:

          [javac] Compiling 8 source files to /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-transaction-portlet/docroot/WEB-INF/classes
          [javac] /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-transaction-portlet/docroot/WEB-INF/src/com/liferay/testtransaction/model/impl/BarCacheModel.java:20: error: cannot find symbol
          [javac] import com.liferay.portal.kernel.util.HashUtil;
          [javac]                                      ^
          [javac]   symbol:   class HashUtil
          [javac]   location: package com.liferay.portal.kernel.util
          [javac] /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-transaction-portlet/docroot/WEB-INF/src/com/liferay/testtransaction/model/impl/BarCacheModel.java:60: error: cannot find symbol
          [javac] 		return HashUtil.hash(0, barId);
          [javac] 		       ^
          [javac]   symbol:   variable HashUtil
          [javac]   location: class BarCacheModel
          [javac] /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-transaction-portlet/docroot/WEB-INF/src/com/liferay/testtransaction/service/persistence/impl/BarPersistenceImpl.java:230: error: incompatible types: com.liferay.portal.kernel.util.StringBundler cannot be converted to com.liferay.petra.string.StringBundler
          [javac] 				appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS,
          [javac] 				                        ^
          [javac] /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-transaction-portlet/docroot/WEB-INF/src/com/liferay/testtransaction/service/persistence/impl/BarPersistenceImpl.java:1178: error: incompatible types: com.liferay.portal.kernel.util.StringBundler cannot be converted to com.liferay.petra.string.StringBundler
          [javac] 				appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS,
          [javac] 				                        ^
          [javac] Note: /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-transaction-portlet/docroot/WEB-INF/src/com/liferay/testtransaction/service/persistence/impl/BarPersistenceImpl.java uses unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
          [javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
          [javac] 4 errors
      [stopwatch] [run.batch.test.action: 1:49.531 sec]
      

      Reproduced on:
      Tomcat 9.0.17 + MySQL 5.7. Portal master GIT ID: bfeecaedf0e596d049bdb68ba6331d4ab348a7c1.
      Plugins 7.0.x GIT ID: becff7d0524058c17c6ae0b8dde544b790dcc4e3.

      Same issue also happens on below test plugins:
      test-blob-portlet
      test-http-client-portlet
      test-hook-portlet

        Attachments

          Activity

            People

            Assignee:
            victor.ware Victor Ware
            Reporter:
            summer.zhang Summer Zhang
            Participants of an Issue:
            Recent user:
            Victor Ware
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 17 weeks, 5 days ago

                Packages

                Version Package