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 87218 - end tag completion doesn't follow case sensitivity in jsp
Summary: end tag completion doesn't follow case sensitivity in jsp
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-10-16 16:43 UTC by Jindrich Sedek
Modified: 2006-10-18 17:42 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans/enterprise3/modules/org-netbeans-modules-web-core-syntax.jar (619.06 KB, application/octet-stream)
2006-10-17 09:04 UTC, Marek Fukala
Details
netbeans/ide7/modules/org-netbeans-modules-html-editor-lib.jar (401.01 KB, application/octet-stream)
2006-10-17 09:05 UTC, Marek Fukala
Details
netbeans/ide7/modules/org-netbeans-modules-html-editor-lib.jar (384.05 KB, application/octet-stream)
2006-10-17 09:16 UTC, Marek Fukala
Details
netbeans/enterprise3/modules/org-netbeans-modules-web-core-syntax.jar (594.20 KB, application/octet-stream)
2006-10-17 09:17 UTC, Marek Fukala
Details
The patch (1.19 KB, patch)
2006-10-17 09:28 UTC, Marek Fukala
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2006-10-16 16:43:25 UTC
Create web application 
in index jsp type <jsp:useBean>|
press Ctrl+Space 
end tag </jsp:usebean> is completed, but be </jsp:useBean> should added, because
otherwise "jsp end tag unbalanced error" is caused by this code.
Comment 1 Marek Fukala 2006-10-17 09:03:21 UTC
Let's fix in release55.

Patch will be attached...
Comment 2 Marek Fukala 2006-10-17 09:04:39 UTC
Created attachment 35261 [details]
netbeans/enterprise3/modules/org-netbeans-modules-web-core-syntax.jar
Comment 3 Marek Fukala 2006-10-17 09:05:25 UTC
Created attachment 35262 [details]
netbeans/ide7/modules/org-netbeans-modules-html-editor-lib.jar
Comment 4 Marek Fukala 2006-10-17 09:15:34 UTC
Sorry, the modules contains unneeded dependencties, I'll attach clean ones.
Comment 5 Marek Fukala 2006-10-17 09:16:33 UTC
Created attachment 35265 [details]
netbeans/ide7/modules/org-netbeans-modules-html-editor-lib.jar
Comment 6 Marek Fukala 2006-10-17 09:17:11 UTC
Created attachment 35266 [details]
netbeans/enterprise3/modules/org-netbeans-modules-web-core-syntax.jar
Comment 7 Petr Blaha 2006-10-17 09:28:13 UTC
I verified the fix with patched modules in NB 5.5 FCS candidate.
Comment 8 Marek Fukala 2006-10-17 09:28:44 UTC
Created attachment 35268 [details]
The patch
Comment 9 Marek Fukala 2006-10-17 09:29:16 UTC
Tomasz and Petr, please review the fix asap. Thanks!
Comment 10 Marek Fukala 2006-10-17 09:39:34 UTC
fixed in release55_dev ... use it instead of the diff. 

Checking in
html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java;
/cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java,v
 <--  HTMLCompletionQuery.java
new revision: 1.11.8.3.2.12.2.1; previous revision: 1.11.8.3.2.12
done
Checking in
web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspSyntaxSupport.java;
/cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspSyntaxSupport.java,v
 <--  JspSyntaxSupport.java
new revision: 1.67.4.4.2.5.2.1; previous revision: 1.67.4.4.2.5
done
Comment 11 Petr Pisl 2006-10-17 10:03:09 UTC
Ok, I agree with the commiting this fix to the release55 branch.
Comment 12 Petr Jiricka 2006-10-17 10:03:41 UTC
I am looking at the steps to reproduce again and I see that this is only
reproducible when the caret is right after the opening tag. In other situations
it is not reproducible:

1/
<jsp:useBean> |

2/
<jsp:useBean>
  some text
|

3/ 
<jsp:useBean></|

What are all the situations when this will happen and how common are they?
Comment 13 Tomasz Slota 2006-10-17 10:43:47 UTC
The solution looks acceptable as a quick fix 
Comment 14 Jindrich Sedek 2006-10-17 10:51:04 UTC
This really appears only at situation of autocompletion - not in more common
situation of adding end tag in code, but it appears quite offten because end tag
autocompletion is invoked automatically after typing ">" at the end of opening
tag, so it invites user to use it.
The only situation should be the one deskribed in steps. It can happen for all
the taglibs used in JSP that have big cases in tag names(for ex. JSF)
Comment 15 Marek Fukala 2006-10-17 10:53:07 UTC
fixed in release55

Checking in
html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java;
/cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java,v
 <--  HTMLCompletionQuery.java
new revision: 1.11.8.3.2.13; previous revision: 1.11.8.3.2.12
done
Checking in
web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspSyntaxSupport.java;
/cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspSyntaxSupport.java,v
 <--  JspSyntaxSupport.java
new revision: 1.67.4.4.2.6; previous revision: 1.67.4.4.2.5
done
Comment 16 Petr Blaha 2006-10-17 11:30:22 UTC
Don't forget to merge the fix in release55u1 branch that is intended for Sun
Studio development. Thanks Petr
Comment 17 Marek Fukala 2006-10-17 12:15:29 UTC
fixed in release55_mars

Checking in
release55/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java;
/cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java,v
 <--  HTMLCompletionQuery.java
new revision: 1.11.8.3.2.12.6.1; previous revision: 1.11.8.3.2.12
done
Checking in
release55_dev/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspSyntaxSupport.java;
/cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspSyntaxSupport.java,v
 <--  JspSyntaxSupport.java
new revision: 1.67.4.4.2.5.6.1; previous revision: 1.67.4.4.2.5
done
Comment 18 Petr Blaha 2006-10-17 16:51:03 UTC
Verified in NB 5.5 FCS build 200610171010
Comment 19 Marek Fukala 2006-10-18 17:42:22 UTC
fixed in trunk

Checking in
html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java;
/cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java,v
 <--  HTMLCompletionQuery.java
new revision: 1.32; previous revision: 1.31
done
Checking in
web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspSyntaxSupport.java;
/cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspSyntaxSupport.java,v
 <--  JspSyntaxSupport.java
new revision: 1.85; previous revision: 1.84
done