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 165394

Summary: select code action in javascript embedded in JSP gets broken be expression language
Product: javascript Reporter: Jindrich Sedek <jsedek>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jindrich Sedek 2009-05-18 12:44:06 UTC
use this code in JSP file
----------
        <script type="text/javascript">
            for(nove_i =0;nove_i<${maximum + 56415641651651651651};nove_i++){
              |
            }
        </script>
-----------
invoke select code action at position of "|" two times - 
first time - section "{...}" is selected
second time - instead of whole "for(...){ ....}" just a prefix of "for(..." is selected
selected piece size seems to be related on the lenght of expression language
Comment 1 Marek Fukala 2009-05-18 13:49:59 UTC
reproducible, low priority issue since happens only under some circumstances. If the EL is placed before the javascript
or inside the js block select code action works fine.
Comment 2 Petr Hejl 2012-09-18 13:53:32 UTC
Does not work at all now.