This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 223572 - in jsp file , the javascript function have a auto one more },
Summary: in jsp file , the javascript function have a auto one more },
Status: RESOLVED DUPLICATE of bug 233772
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-10 06:43 UTC by fortruth
Modified: 2013-08-09 11:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fortruth 2012-12-10 06:43:27 UTC
Product Version = NetBeans IDE Dev (Build 201212080001)
Operating System = Linux version 3.5.0-20-generic running on amd64
Java; VM; Vendor = 1.7.0_09
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.5-b02


<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript">
            var fillEditor = function(selectedItem) {
            <c:if test="${hello}">
                    
            </c:if>
                };
        </script>
    </head>
    <body>
        <h1>Hello World!</h1>
    </body>
</html>


when there is "ENTER" after             var fillEditor = function(selectedItem) { 

then a one more  "}" added in new line.
Comment 1 Martin Fousek 2012-12-10 07:28:55 UTC
reproducible
Comment 2 Petr Hejl 2013-07-17 08:13:47 UTC
The problem is that there are multiple areas of JS splitted by jsp fragment. We can't use the snapshot in typing hooks and thus we think there is a missing }.
Comment 3 Petr Hejl 2013-08-09 11:16:55 UTC

*** This bug has been marked as a duplicate of bug 233772 ***