Advertisement
DulcetAirman

Eclipse Bug: No Autosuggest after Cast

May 8th, 2015
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. package com.example.foo;
  2.  
  3. import java.io.Serializable;
  4. import java.util.function.Function;
  5.  
  6. public class SomeClass {
  7.   public static void main(final String... args) {
  8.     final Function<Integer, String> f;
  9.     f = (Function<Integer, String> & Serializable) (v) -> "value: " + v;
  10.     // Autosuggest not working here!
  11.   }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement