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 198093 - Incorrect formatting in JSPF file with scriptlets
Summary: Incorrect formatting in JSPF file with scriptlets
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-26 15:39 UTC by Vladimir Riha
Modified: 2016-07-07 08:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample file (633 bytes, application/octet-stream)
2011-04-26 15:39 UTC, Vladimir Riha
Details
another sample file (633 bytes, application/octet-stream)
2011-05-02 11:49 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2011-04-26 15:39:02 UTC
Created attachment 107949 [details]
sample file

Try to Format (Shift+Alt+F) the attached jspf file. Look at line 19 (after formatting), there is following:

<%} else {

But result should be more likely like this:

<% } else {


Product Version: NetBeans IDE Dev (Build 201104260000)
Java: 1.6.0_25; Java HotSpot(TM) Client VM 20.0-b11
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 1 Vladimir Riha 2011-05-02 11:49:05 UTC
Created attachment 108045 [details]
another sample file

Probably the same problem, but with different file...
Line 5:
Should be:
<% if (Boolean.parseBoolean("true")) {
But result is:
<% if (Boolean.parseBoolean("true")){
Comment 2 Martin Balin 2016-07-07 08:53:42 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss