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

Compile failure on HelloWorldPortlet.java 7.2 due to incorrect backport of LPS-64805

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.2.X
    • Fix Version/s: 7.2.X
    • Component/s: Core Infrastructure
    • Labels:
    • Fix Priority:
      5

      Description

      Stacktrace:

           [exec] /opt/dev/projects/github/liferay-portal-7.2.x/modules/apps/hello-world/hello-world-web/src/main/java/com/liferay/hello/world/web/internal/portlet/HelloWorldPortlet.java:18: error: package com.liferay.petra.string does not exist
           [exec] import com.liferay.petra.string.StringPool;
           [exec]                                ^
           [exec] /opt/dev/projects/github/liferay-portal-7.2.x/modules/apps/hello-world/hello-world-web/src/main/java/com/liferay/hello/world/web/internal/portlet/HelloWorldPortlet.java:73: error: cannot find symbol
           [exec] 		String releaseInfo = StringPool.BLANK;
           [exec] 		                     ^
           [exec]   symbol:   variable StringPool
           [exec]   location: class HelloWorldPortlet
           [exec] 2 errors
           [exec] 
           [exec] > Task :apps:frontend-theme-porygon:frontend-theme-porygon:deploy
           [exec] Files of project ':apps:frontend-theme-porygon:frontend-theme-porygon' deployed to /opt/dev/projects/github/liferay-portal-7.2.x/bundles/deploy
           [exec] 
           [exec] > Task :apps:hello-world:hello-world-web:compileJava FAILED
           [exec] 
           [exec] > Task :apps:html-preview:html-preview-api:compileJava
           [exec] 
           [exec] > Task :apps:hello-soy:hello-soy-navigation-web:npmRunBuild
           [exec] Bundling took 486ms
           [exec] Done in 5.05s.
           [exec] 
           [exec] FAILURE: Build failed with an exception.
      

        Attachments

          Activity

            People

            • Assignee:
              joshua.chong Joshua Chong
              Reporter:
              joshua.chong Joshua Chong
              Participants of an Issue:
              Recent user:
              Samuel Kong
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                17 weeks, 4 days ago

                Packages

                Version Package
                7.2.X