Community
Participate
Working Groups
Build Identifier: 20090920-1017 Starting type JSP comment tag <%-- inside <script> tag leads to insertion of two hyphens just before closing </script> tag. When it happens in big long pages no one can spot it the moment it happened, and finally hit by unexpected javascript syntax errors in runtime. Reproducible: Always Steps to Reproduce: 1. Open example JSP file attached and place cursor on line 21. 2. Type JSP comment tag "<%--" (without quotes) symbol by symbol. Keep your eye on closing </script> tag. 3. After typing past hyphen you see two hyphens "--" just before closing script tag. This happens if there is at least one Java code included between <script> and </script>, see lines 26-28 of the example source code. Remove these lines and this behaviour disappears.
Created attachment 190260 [details] Example JSP source code
Created attachment 190264 [details] Descriptive screenshot
Thanks for the bug report. This was fixed in the Helios SR2, which was just recently released. *** This bug has been marked as a duplicate of bug 320001 ***