import java.util.ArrayList; public class TypeErrorNotShownInEditor { private static void someFunc(String arg) { } public static ArrayList createList() { return new ArrayList<>(); } public static final void main(String args[]) { /* Compiler gives the error below, but no error is shown in NetBeans' Java editor. Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: TypeErrorNotShownInEditor.someFunc at TypeErrorNotShownInEditor.main(TypeErrorNotShownInEditor.java:10) */ someFunc(new ArrayList<>()); // Same here. someFunc(createList()); } }