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

Unable to compile older versions of Liferay using JDK 6

    Details

      Description

      Steps to Reproduce

      1. Navigate to Liferay 6.1.x or 6.2.x source code
      2. Switch to JDK 6
      3. Set javac.compiler=modern in build.USERNAME.properties
      4. Run ant all

      Expected behavior is that the 6.1.x and 6.2.x compile succeeds. Actual behavior is both 6.1.x and 6.2.x fail to build.

      This is because the build.gradle for com.liferay.ant.sync.dir does not declare the correct source and target version, and it uses features from JDK 7 and JDK 8.

      In theory, you could switch to JDK7 or JDK8 for the build process, but it makes it much more likely that we introduce regressions where we use JDK 7 or JDK 8 API in a backport.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andrea.digiorgi Andrea Di Giorgi (Inactive)
                Reporter:
                minhchau.dang Minhchau Dang
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 8 weeks, 1 day ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.X EE
                  7.0.0 DXP FP27
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master