Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-3691

solr and solr4 do not compile in Java 8

    Details

      Description

      When switching to JDK8, one gets the following compilation error (see ALF-ENT0-383):

      solr:

      [ERROR] /xml-data/build-dir/ALF-ENT0-JOB1/projects/solr/source/java/org/alfresco/solr/AlfrescoSolrEventListener.java:[572,36] reference to sort is ambiguous
      [ERROR] both method sort(java.util.Comparator<? super E>) in java.util.List and method <T>sort(java.util.Comparator<T>) in org.alfresco.solr.ResizeableArrayList match
      [ERROR] /xml-data/build-dir/ALF-ENT0-JOB1/projects/solr/source/java/org/alfresco/solr/AlfrescoSolrEventListener.java:[659,38] reference to sort is ambiguous
      [ERROR] both method sort(java.util.Comparator<? super E>) in java.util.List and method <T>sort(java.util.Comparator<T>) in org.alfresco.solr.ResizeableArrayList match
      [ERROR] /xml-data/build-dir/ALF-ENT0-JOB1/projects/solr/source/java/org/alfresco/solr/ResizeableArrayList.java:[164,21] name clash: <T>sort(java.util.Comparator<T>) in org.alfresco.solr.ResizeableArrayList and sort(java.util.Comparator<? super E>) in java.util.List have the same erasure, yet neither overrides the other
      

      solr4:

      [ERROR] /xml-data/build-dir/ALF-ENT0-JOB1/projects/solr4/source/java/org/alfresco/solr/ResizeableArrayList.java:[164,21] name clash: <T>sort(java.util.Comparator<T>) in org.alfresco.solr.ResizeableArrayList and sort(java.util.Comparator<? super E>) in java.util.List have the same erasure, yet neither overrides the other
      

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  slanglois Samuel Langlois [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel