java - Internal inconsistency detected during lambda shape analysis -
in similar problem described in this unanswered question , this other unanswered question, receive warning in eclipse luna service release 1 (4.4.1) (20140925-1800) reading, "(recovered) internal inconsistency detected during lambda shape analysis". code follows:
public static <t> t findfirst(iterable<t> list, predicate<t> condition) { /* ... */ } public static integer findfirstprime(iterable<integer> integers) { return findfirst(integers, integer -> { /* return either true or false */ } ); }
the warning raised on text reading integer ->
. there bug report stating issue fixed eclipse mars 4.5, can in meantime? if want use @suppresswarnings
, how know warning type supply?
unfortunately, not type of warning can suppress.
at least looks fix has been back-ported 4.4.2 maintenance release of luna, due released on february 27, 2015:
https://projects.eclipse.org/projects/eclipse/releases/4.4.2/plan
Comments
Post a Comment