This should probably go under the Eclipse subforum but I wanted to get other IDE user's attention too. The
following code illustrates a problem with Eclipse (presently using Neon, 64 bit for Windows).

Java Code:
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

@SuppressWarnings("unused")
public class TestStatic {

   public static void main(String[] args) {
      start();
   }
   public static void start() {
      List<Foo> data =
            Stream.of("a").map(Foo::new).collect(Collectors.toList());
   }

   private class Foo {
      String s1;

      public Foo(String... s) {
         s1 = s[0];
      }

      public String toString() {
         return s1;
      }
   }

}
One would expect to get an error of not have an enclosing instance at line 15 for the Foo::new construct since I am
trying to instantiate an inner class from a static context. And I do get the appropriate error except it is at the top
of the file. No indication of where the error is occurring. If you alter the inner class Foo to accept a single value constructor
instead of the variable list constructor, the error is flagged at line 15. I tried other constructor types and stream expressions
and it seems it is related to the variable argument constructor.

I was just wondering how other IDE's handle this situation and if it is a bug worth reporting. I have not yet checked the Eclipse
bug list.

Regards,
Jim