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 162220 - Mysterious affair of caret
Summary: Mysterious affair of caret
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-08 13:56 UTC by Marek Fukala
Modified: 2009-04-08 14:23 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 Marek Fukala 2009-04-08 13:57:03 UTC
Really funny issue:

1) put following example into an empty jsp file:
-------
fdfdsfd 
<html>

-------
2) set caret at the beginning of the third empty line
3) move the caret up by key 'arrow up'
=> the caret is move to the beginning of the second line, but stops blinking
=> caret aware features like tags matching are not trigerred
4) try to move the caret to right
=> no reaction, you need to press the arrow right key several times before the caret starts moving and start blinking.

The issue is 100% reproducible on the example, also on other samples, but not all files. Reproducible on Mac OS X (jdk
1.6.0_07) and Solaris (jdk 1.6.0_13)

Also reproducible in html files, but seems not reproducible on other filetypes. I still think this is either JDK or
editor issue.

Vito, can you please try to look at this issue, you are the only expert who can resolve the Mysterious affair (on Styles
:-) ). Thank you.
Comment 1 Marek Fukala 2009-04-08 14:02:24 UTC
Some garbage crept into the sample: The correct code is following:
-------
fdfdsfd 
<html>
-------
Comment 2 Marek Fukala 2009-04-08 14:23:59 UTC
Hmm, so the 'garbage' seems to be the cause of the issue :-). They are the byte order marks (BOMs) which are not
stripped when opening a file, but can be copied so may appear anywhere in the text.