Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3181

James does not compile

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: master
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None

      Description

      Compilation breaks when attempting to build James.

      Java version: 

       

      openjdk version "11.0.7" 2020-04-14
      OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
      OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)
      

       

      On MacOS.

      Breaks here:

      [INFO] Apache James :: Core Domain Objects ................ FAILURE [  9.755 s]

      Broken test example:

      -------------------------------------------------------------------------------
      Test set: org.apache.james.core.builder.MimeMessageBuilderTest
      -------------------------------------------------------------------------------
      Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.091 s <<< FAILURE! - in org.apache.james.core.builder.MimeMessageBuilderTest
      embeddedMessagesShouldBeSupported  Time elapsed: 0.028 s  <<< ERROR!
      java.lang.Error: 
      Unresolved compilation problems: 
      	The method toArray(T[]) in the type ImmutableCollection<InternetAddress> is not applicable for the arguments (InternetAddress[]::new)
      	The target type of this expression must be a functional interface
      	The method toArray(T[]) in the type List<InternetAddress> is not applicable for the arguments (InternetAddress[]::new)
      	The target type of this expression must be a functional interface
      	The method toArray(T[]) in the type List<InternetAddress> is not applicable for the arguments (InternetAddress[]::new)
      	The target type of this expression must be a functional interface
      	The method toArray(T[]) in the type List<InternetAddress> is not applicable for the arguments (InternetAddress[]::new)
      	The target type of this expression must be a functional interface	at org.apache.james.core.builder.MimeMessageBuilderTest.embeddedMessagesShouldBeSupported(MimeMessageBuilderTest.java:70)buildShouldAllowToSpecifyMultipartSubtype  Time elapsed: 0.057 s  <<< ERROR!
      java.lang.Error: 
      Unresolved compilation problems: 
      	The method toArray(T[]) in the type ImmutableCollection<InternetAddress> is not applicable for the arguments (InternetAddress[]::new)
      	The target type of this expression must be a functional interface
      	The method toArray(T[]) in the type List<InternetAddress> is not applicable for the arguments (InternetAddress[]::new)
      	The target type of this expression must be a functional interface
      	The method toArray(T[]) in the type List<InternetAddress> is not applicable for the arguments (InternetAddress[]::new)
      	The target type of this expression must be a functional interface
      	The method toArray(T[]) in the type List<InternetAddress> is not applicable for the arguments (InternetAddress[]::new)
      	The target type of this expression must be a functional interface	at org.apache.james.core.builder.MimeMessageBuilderTest.buildShouldAllowToSpecifyMultipartSubtype(MimeMessageBuilderTest.java:90)
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dleangen David Leangen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: