Community
Participate
Working Groups
Created attachment 272035 [details] jsp-editor-doesn't-report-unhandled-exception Steps to Reduce: 1. Put a scriptlet in a jsp. e.g. <%! 16: public void storeConfig(Properties cfg){ 17: FileUtils.writeStringToFile(getConfigFile(), JSON.toJSONString(cfg), StandardCharsets.UTF_8); 18: } %> 2. Access the jsp via browser Actual Result: An error occurred at line: 17 in the jsp file: /test.jsp Unhandled exception type IOException Expected Result: No such compilation error, JSP Editor should warn me earlier, just like Java Editor, tells me there is a non-RuntimeException not handled.
The JSP editor and validator code appears to be in Source Editing, so moving there.
The contents of the JSP file compile down into a Servlet service method that explicitly declares it can throw a ServletException or IOException, as defined in section 9 of the JSP specification. No compile-time error message should appear for this.
Which version is this? Do you have a Minimal Working Example that shows the problem? Without fully qualified class names, it's not something I can try to reproduce.