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 135209 - code has no side effect should not be shown for generated javascript content
Summary: code has no side effect should not be shown for generated javascript content
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks: 135023
  Show dependency tree
 
Reported: 2008-05-16 11:43 UTC by Jindrich Sedek
Modified: 2008-08-01 16:45 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 Jindrich Sedek 2008-05-16 11:43:50 UTC
use this code:
--------------
<table onclick='<%= "f()" %>'>
    
</table>
--------------
f function is beeing called, but warning "Code has no side effects" is shown
no warning is shown for non generated content:
<table onclick='f()'>
</table>
Comment 1 Marek Fukala 2008-05-16 12:19:45 UTC
Virtual source:
--------------------
;function(){
 __UNKNOWN__ 
}
--------------------

The warnings for generated code parts needs to be filtered out.
Comment 2 Torbjorn Norbye 2008-06-02 20:05:32 UTC
Fixed by changeset 7ce055fa4e15.
Comment 3 Jindrich Sedek 2008-07-03 12:52:44 UTC
verified.
 NetBeans IDE Dev (Build 200807030102)