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 229034 - Writing scriptlet code inside javascript generates "Expected Operand but foind error @@@"
Summary: Writing scriptlet code inside javascript generates "Expected Operand but foin...
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P1 normal (vote)
Assignee: Petr Pisl
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-04-25 20:57 UTC by andreban
Modified: 2013-05-14 06:35 UTC (History)
2 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 andreban 2013-04-25 20:57:04 UTC
I have lot's of legacy code with this type of construct and it works perfectly up to Netbeans 7.2. I started getting erros on JSP wit scriptlet on Netbeans 73. This specific error happens on Build 201304242301.

Here's a sample code that creates the error:

<%@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">
            <% for(int i = 0; i< 10; i++) { %>
                
            <% } %>
        </script>
    </head>
    <body>
        <h1>Hello World!</h1>
    </body>
</html>
Comment 1 Vladimir Riha 2013-04-25 21:31:57 UTC
Works fine in 7.3patch1, but reproducible in trunk




Product Version: NetBeans IDE Dev (Build 201304242301)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-40-generic-pae running on i386; UTF-8; en_US (nb)
Comment 2 Vladimir Riha 2013-04-25 21:35:47 UTC
Also works fine in 7.3.1Dev

@andreban: Do you get this error in 7.3 or Dev (as you wrote in Description)? If in 7.3, please try to install all updates (Help->Check for Updates)




Product Version: NetBeans IDE 7.3.1 (Build 201304232201)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-40-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 andreban 2013-04-25 23:16:39 UTC
@vriha I'm getting this error on Build 201304242301 (Nightly build i downloaded today). 

(In reply to comment #2)
> Also works fine in 7.3.1Dev
> 
> @andreban: Do you get this error in 7.3 or Dev (as you wrote in Description)?
> If in 7.3, please try to install all updates (Help->Check for Updates)
> 
> 
> 
> 
> Product Version: NetBeans IDE 7.3.1 (Build 201304232201)
> Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
> Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
> System: Linux version 3.2.0-40-generic-pae running on i386; UTF-8; en_US (nb)
Comment 4 Vladimir Riha 2013-04-26 06:12:02 UTC
Thanks for confirmation
Comment 5 Petr Pisl 2013-05-14 06:20:33 UTC
I'm not able to reproduce in trunk now. It can be already fixed. Is it reproducible with current development build? If yes, please reopen.
Comment 6 Vladimir Riha 2013-05-14 06:35:50 UTC
Works fine now, thanks


Product Version: NetBeans IDE Dev (Build 201305132300)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-41-generic-pae running on i386; UTF-8; en_US (nb)