History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17307
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Lucas Nelson
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Enum must not be local in JSP declaration block

Created: 04 Mar 08 06:28   Updated: 04 Mar 08 12:19
Component/s: Editor. Error Highlighting, J2EE.JSP

Environment: Java 1.6.0_03 under Ubuntu 7.10

Build: 7,590
Severity: Low


 Description  « Hide
A JSP file such as:
<%!
	private enum Y { A, B, C }
%>
<%
	out.print("hello " + Y.A);
%>

Will show an error highlight under "private enum Y" that states "Enum must not be local". The JSP page will compile and execute without error in Tomcat 6. The file also passes "Validate JSP" from the right-click mouse menu in IDEA. I am pretty sure it's valid JSP code.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.