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

Build failed after SF when deploying the frontend-theme-dxp-override module

    Details

      Description

      After theĀ Auto SF in -LPS-86408- in 7.1.x-private GitID:6ac0086934341b8660ac1419d3f6857275ea3718, the build failed when deploying the frontend-theme-dxp-override module.

      Configuration on demand is an incubating feature.
      :private:apps:frontend-theme:frontend-theme-dxp-override:compileJava
      /home/repo/liferay/liferay-portal-ee/modules/private/apps/frontend-theme/frontend-theme-dxp-override/src/main/java/com/liferay/frontend/theme/dxp/override/internal/BaseThemeFragmentBundleInstaller.java:76: error: local variable bundleContext is accessed from within inner class; needs to be declared final
                                              Bundle fragmentBundle = bundleContext.getBundle(location);
                                                                      ^
      /home/repo/liferay/liferay-portal-ee/modules/private/apps/frontend-theme/frontend-theme-dxp-override/src/main/java/com/liferay/frontend/theme/dxp/override/internal/BaseThemeFragmentBundleInstaller.java:83: error: local variable bundleContext is accessed from within inner class; needs to be declared final
                                                      fragmentBundle = bundleContext.installBundle(
                                                                       ^
      /home/repo/liferay/liferay-portal-ee/modules/private/apps/frontend-theme/frontend-theme-dxp-override/src/main/java/com/liferay/frontend/theme/dxp/override/internal/BaseThemeFragmentBundleInstaller.java:86: error: local variable frameworkWiring is accessed from within inner class; needs to be declared final
                                                      frameworkWiring.resolveBundles(
                                                      ^
      /home/repo/liferay/liferay-portal-ee/modules/private/apps/frontend-theme/frontend-theme-dxp-override/src/main/java/com/liferay/frontend/theme/dxp/override/internal/BaseThemeFragmentBundleInstaller.java:127: error: local variable currentBundle is accessed from within inner class; needs to be declared final
                                              if (!bundle.equals(currentBundle)) {
                                                                 ^
      /home/repo/liferay/liferay-portal-ee/modules/private/apps/frontend-theme/frontend-theme-dxp-override/src/main/java/com/liferay/frontend/theme/dxp/override/internal/BaseThemeFragmentBundleInstaller.java:138: error: local variable systemBundleContext is accessed from within inner class; needs to be declared final
                                                      systemBundleContext.removeBundleListener(this);
                                                      ^
      /home/repo/liferay/liferay-portal-ee/modules/private/apps/frontend-theme/frontend-theme-dxp-override/src/main/java/com/liferay/frontend/theme/dxp/override/internal/BaseThemeFragmentBundleInstaller.java:157: error: local variable frameworkWiring is accessed from within inner class; needs to be declared final
                                                              frameworkWiring.refreshBundles(
                                                              ^
      /home/repo/liferay/liferay-portal-ee/modules/private/apps/frontend-theme/frontend-theme-dxp-override/src/main/java/com/liferay/frontend/theme/dxp/override/internal/BaseThemeFragmentBundleInstaller.java:168: error: local variable systemBundleContext is accessed from within inner class; needs to be declared final
                                              systemBundleContext.removeBundleListener(this);
                                              ^
      7 errors
      :private:apps:frontend-theme:frontend-theme-dxp-override:compileJava FAILED
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':private:apps:frontend-theme:frontend-theme-dxp-override:compileJava'.
      > Compilation failed; see the compiler error output for details.
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      BUILD FAILED
      

      Note:
      Add back these properties sourceCompatibility = "1.8" targetCompatibility = "1.8" in ${portal-source}/modules/private/apps/frontend-theme/frontend-theme-dxp-override/build.gradle, build will succeed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jason.pince Jason Pince
              Reporter:
              lily.chi Lily Chi
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 1 week, 4 days ago

                  Packages

                  Version Package
                  7.1.X
                  Master