title: java: incompatible types: inference variable T has incompatible bounds equality constraints: lower bounds: java.util.List<>
body: <p>i try to get a list from a stream but i have an exception.</p>
  
  <p>Here is the Movie object with a list of an object.</p>
  
  <pre><code>public class Movie {
  
      private String example;
      private List&lt;MovieTrans&gt; movieTranses;
  
      public Movie(String example, List&lt;MovieTrans&gt; movieTranses){
          this.example = example;
          this.movieTranses = movieTranses;
      }
      getter and setter
  </code></pre>
  
  <p>Here is the MovieTrans:</p>
  
  <pre><code>public class MovieTrans {
  
      public String text;
  
      public MovieTrans(String text){
          this.text = text;
      }
      getter and setter
  </code></pre>
  
  <p>i add the element in the lists:</p>
  
  <pre><code>List&lt;MovieTrans&gt; movieTransList = Arrays.asList(new MovieTrans("Appel me"), new MovieTrans("je t'appel"));
  List&lt;Movie&gt; movies = Arrays.asList(new Movie("movie played", movieTransList));
  //return a list of MovieTrans
  List&lt;MovieTrans&gt; movieTransList1 = movies.stream().map(Movie::getMovieTranses).collect(Collectors.toList());
  </code></pre>
  
  <p>i have this compiler error:</p>
  
  <pre><code>Error:(44, 95) java: incompatible types: inference variable T has incompatible bounds
      equality constraints: MovieTrans
      lower bounds: java.util.List&lt;MovieTrans&gt;
  </code></pre>