Guillaume,

Guillaume Laforge wrote:
> 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
> %>
This is fixed in #635.

> 
> 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; !!!!!!!!

Could not reproduce it, but I guess it is fixed #635.
Please check when it is available

Thank you for bug report!

Friendly,
        Dmitry

-- 
Dmitry Lomov
JetBrains Inc. / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

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

Reply via email to