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 133173 - javascript hints and error annotations should not be shown in JSP code
Summary: javascript hints and error annotations should not be shown in JSP code
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker with 1 vote (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
: 132728 (view as bug list)
Depends on:
Blocks: 135023
  Show dependency tree
 
Reported: 2008-04-18 09:12 UTC by Jindrich Sedek
Modified: 2008-09-11 13:46 UTC (History)
3 users (show)

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 Jindrich Sedek 2008-04-18 09:12:24 UTC
use this code in JSP file:
-------------------
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
    function f()
    {
        <c:url value="" value="${param.dd}">
            <c:param name="bar" value="${param.value}"/>
        </c:url>
    }
</script>
----------------------------
line with <c:param ... > is red highlighted and line with <c:url ...> has hint annotation complaing about code with no
side effects -> both Java Script annotations have no sence in the JSP code. See issue #131871 for details and screenshot
Comment 1 Marek Fukala 2008-04-18 10:26:44 UTC
The problem is in javascript virtual source generation - multiple subsitute identifiers are used in generated javascript
code. Since the identifiers doesn't have a semicolon as a postfix the error appears. 

Virtual javascript source for the example:
    function f()
    {
         __UNKNOWN__ 
             __UNKNOWN__  __UNKNOWN__ 
        
    }

The model generator should probably skip body of jsp tags.
Comment 2 nicolo 2008-04-29 08:50:33 UTC
I've got the same problem, even if the jsp code is written with <%%> tag
Comment 3 pslechta 2008-06-03 13:36:27 UTC
Hello mfukala,

can you please fix this bug as soon as possible (till 09-Jun-2008), so it can be part of NB 6.1 patch 2?

Thanks!
Comment 4 pgebauer 2008-06-13 10:22:45 UTC
The issue didn't meet nomination criteria for 61patch2 till nomination cut-off
date. It has been moved to the next patch.
Comment 5 Marek Fukala 2008-07-30 11:13:12 UTC
*** Issue 132728 has been marked as a duplicate of this issue. ***
Comment 6 rbalada 2008-07-30 13:23:23 UTC
Ahoj Marku,

would you please fix this issue as soon as possible, preferably earlier than Aug 5, what is 61fixes3 cut-off date?

Thanks,
-R
Comment 7 rbalada 2008-08-06 15:58:38 UTC
This issue did not meet the criteria for inclusion in NetBeans 6.1 Patch 3.
Comment 8 Torbjorn Norbye 2008-09-08 18:53:19 UTC
I should be able to fix this in the JavaScript parser (e.g. I can auto insert semicolons when I detect that the
expression is involving a synthetic identifier used for embedding models)
Comment 9 Torbjorn Norbye 2008-09-08 19:06:57 UTC
Fixed in changeset 0ebe37b98a1b
Comment 10 Jindrich Sedek 2008-09-11 13:46:52 UTC
verified.
NetBeans IDE Dev (Build 20080911010625)