This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Create new WebApplication in index.jsp use these directives: <%@page contentType="text/html"%> <%@page import="static java.util.LinkedList" %> first line is red underlined and red exclamation mark is shown near first line it anounces an error in static import but it is on second line
Created attachment 44666 [details] snap shot
reproducible, errors in the import directive are always reported on the first line.
moving opened issues from TM <= 6.1 to TM=Dev
Still reproducible. Tomasz, is this easily fixable, or not really?
reproducible. weird, it looks like the warning does not come from Java
Reproducible TM <= 6.8 to TM=Dev
what is the whole issue about??? static import is not ment for classes and interfaces but for their members so import static java.util.LinkedList; resp. <%@page import="static java.util.LinkedList" %> is a nonsense. As the simplified servlet contains the code import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import static java.util.LinkedList; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ public class SimplifiedJSPServlet extends HttpServlet { private static final long serialVersionUID = 1L; void mergedScriptlets( HttpServletRequest request, HttpServletResponse response, HttpSession session, ServletContext application, JspWriter out, ServletConfig config, JspContext jspContext, Object page, PageContext pageContext, Throwable exception ) throws Throwable { } } the java parser correctly says it is invalid construct. for example <%@page import="static java.util.LinkedList.*" %> is correct and also works fine in netbeans.
ok, I see - the fact the error is on wrong line :-)
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.