Advertisement
DulcetAirman

Eclipse Bug: No Autosuggest after Cast

May 8th, 2015
282
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement