Details
-
Bug
-
Status: Closed
-
Resolution: Won't Fix
-
Master
-
None
-
3
-
Regression Bug
Description
Steps to Reproduce:
- In file /liferay-plugins/build.*.properties, update property 'app.server.parent.dir' points to a master bundle.
- 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