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

Key: IDEA-16605
Type: Bug Bug
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Sascha Weinreuter
Votes: 0
Watchers: 1
Operations

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

Create Local Variable from Usage breaks code in JSPX

Created: 05 Dec 07 16:04   Updated: 06 Dec 07 13:37
Component/s: Editor. Intention Actions, J2EE.JSP

Build: 7,584
Severity: Low


 Description  « Hide
Invoking the "Create Local Variable 'a'" QuickFix on the JSPX page below produces broken code. This seems to only happen when the "jsp:expression" tag is directly nested in some other "jsp:*" tag.
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns="http://www.w3.org/1999/xhtml" version="2.0">
<html>
  <body>
    <jsp:element name="a">
      <jsp:expression>a</jsp:expression>
    </jsp:element>
  </body>
</html>
</jsp:root>

Result:

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns="http://www.w3.org/1999/xhtml" version="2.0">
<html>
  <body>
    <j
    <jsp:scriptlet>
      final boolean a;
    </jsp:scriptlet>
    sp:element name="a">
      <jsp:expression>a</jsp:expression>
    </jsp:element>
  </body>
</html>
</jsp:root>


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