Hello again,

Try the following code in a blank JSP:

<%
 out.print("hello world!");
%>
Something
<%
 System.currentTimeMillis()|
%>

When the caret is after System.currentTimeMillis(), and I hit CTRL-ALT-V for
introducing a variable, I get :

<%
 out.print("hello world!");
 long l = System.currentTimeMillis();
%>
Something
<%
 l
%>

I think the long l = S.. should be placed in the same block of code <%%>.not
in the previous one.
On the other hand, the refactoring works when we are in the first <%%> block
of code.

In other cases, in longer JSP that I won't reproduce here, the
System.currentTimeMillis() is replaced by l;  !!!!

Imports, etc...
Some html
Some code...
some html
<%
  System.currentTimeMillis()|
 %>
some html

becomes
...
<%
    l;
%>
...

The code is purely and simply replaced by l; !!!!!!!!

Guillaume


_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to