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

LIferay 6.2.x fails to compile with modern compiler under JDK6

    Details

      Description

      Steps to reproduce:

      1. Switch to JDK6
      2. Add javac.compiler=modern to build.USERNAME.properties
      3. Run 'ant all' to build liferay portal
      compile-java:
           [copy] Copying 1 file to .../portal-impl/classes
          [javac] Compiling 4255 source files to .../portal-impl/classes
          [javac] .../portal-impl/src/com/liferay/portal/service/impl/PortletPreferencesLocalServiceImpl.java:540: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds long,java.lang.Object
          [javac] 			return ReflectionUtil.throwException(pe);
          [javac] 			                                    ^
          [javac] Note: Some input files use or override a deprecated API.
          [javac] Note: Recompile with -Xlint:deprecation for details.
          [javac] Note: Some input files use unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
          [javac] 1 error

      Reproduced on ee-6.2.x: 7638017db852bdc1449b2126a32ee113c7348f5b

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years ago

                  Packages

                  Version Package
                  6.2.X EE