Hi all,
IDEA does not recognize static inner classes to JSP pages. I have a file that contains something like:
<%@ page language="java" %>
<%@ page import="java.util.List,
java.util.LinkedList"%>
<%!
static class DataObject {
int depth;
Object data;
DataObject(Object data, int depth) {
this.data = "data;
this.depth = depth;
}
int getDepth() {
return depth;
}
Object getData() {
return data;
}
}
static List loadTree(...) {
List tree = new LinkedList();
...
tree.add(new DataObject("someobject", 1)); // error here
}
%>
And so on. The line marked with error here gives me an error:
Cannot resolve symbol DataObject
The JSP page compiles without problems on Orion 1.5.2.
Also, as I'm already at it. I would really like a way of performing
syntax checks similar to a compilation in JSP files in IDEA. I know
the functionality is already there, but a button feels more comfortable
for me :) :)
regards,
Patrik Andersson
