Hello,

I'm gonna be a specialist of issues concerning comments in JSP, but there is
still some stuff that need to be worked out, though I've already pointed out
those issues. Here they are:

_________________________________________

1) Create a new JSP, add the following scriptlet

<%

String s = "test";

%>

Now select "test", including the double quotes. Then hit CTRL-SHIFT-/.

You'll get an error and the following stack trace:

2002-07-14 18:04:08,194 [11367995] ERROR - com.intellij.command.a.b -

2002-07-14 18:04:08,194 [11367995] ERROR - com.intellij.command.a.b -
IntelliJ IDEA (Ariadna) 3.0 Build #635

2002-07-14 18:04:08,194 [11367995] ERROR - com.intellij.command.a.b - JDK:
1.4.0_01

2002-07-14 18:04:08,194 [11367995] ERROR - com.intellij.command.a.b - VM:
Java HotSpot(TM) Client VM

2002-07-14 18:04:08,194 [11367995] ERROR - com.intellij.command.a.b -
Vendor: Sun Microsystems Inc.

2002-07-14 18:04:08,194 [11367995] ERROR - com.intellij.command.a.b - OS:
Windows XP

2002-07-14 18:04:08,194 [11367995] ERROR - com.intellij.command.a.b -

java.lang.NullPointerException

at com.intellij.codeInsight.n.e.a(e.java:7)

at com.intellij.codeInsight.j.b.run(b.java:1)

at com.intellij.openapi.application.a.d.runWriteAction(d.java:118)

at com.intellij.codeInsight.j.a.run(a.java:6)

at com.intellij.command.a.b.a(b.java:0)

at com.intellij.codeInsight.j.r.a(r.java:35)

at com.intellij.codeInsight.j.r.actionPerformed(r.java:27)

at com.intellij.openapi.b.b.e.run(e.java:0)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)

at com.intellij.ide.q.a(q.java:9)

at com.intellij.ide.q.dispatchEvent(q.java:18)

at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:191)

at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:144)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

__________________________________________

2) Create a new JSP with the following text inside:

<html>

<body>

Some text for testing purpose.

</body>

</html>

Select the word testing, or whatever word, and hit CTRL-SHIFT-/

You'll get the word testing surrounded with /* */. I don't think it's the
normal behaviour.

It should be surrounded with <%-- --%>, or perhaps <!-- --> but not with
/**/, we're not in a scriptlet!!!

____________________________________________________

3) third issue, not about comments but about duplicating a line

Create a new JSP with the following scriptlet:

<%

String s = "test";| [CTRL-D]

%>

Go to the line with the String declaration, and hit CTRL-D in order to
duplicate the line, and instead of that:

<%

String s = "test";

String s = "test";

%>

You'll get that, i.e. an additional blank line in between.

<%

String s = "test";

|

String s = "test";

%>



I hope this helps :o)

Otherwise, there are some nice stuffs in this release, such as splitting
strings and joining lines, well done!

Guillaume



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

Reply via email to