Internal inconsistency detected by lambda shape analysis

In a similar problem described in this unanswered question and this another unanswered question , I get a warning in the Eclipse Luna Service Release 1 (4.4.1) (20140925-1800), "(restored) Internal inconsistency found while analyzing lambda shape " The code is as 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 */ } ); } 

A warning occurs when reading integer -> text. There is a bug report stating that the problem has been fixed for Eclipse Mars 4.5, but what can I do during this time? If I want to use @SuppressWarnings , how do I know what type of alert will be delivered?

+6
source share
1 answer

Unfortunately, this is not the type of warning you can suppress.

At least it looks like the patch has been ported to version 4.4.2 for the Luna service, due out on February 27, 2015:

https://projects.eclipse.org/projects/eclipse/releases/4.4.2/plan

+5
source

Source: https://habr.com/ru/post/979206/


All Articles