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 146139 - Unable to type bracket in a source code
Summary: Unable to type bracket in a source code
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords: REGRESSION
: 146221 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-04 09:57 UTC by Petr Dvorak
Modified: 2008-09-05 10:22 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Java file where you cannot type a closing bracket ')' anywhere else than in comments (714 bytes, text/plain)
2008-09-04 09:58 UTC, Petr Dvorak
Details
sample source code - cannot type right parenthesis (8.33 KB, text/plain)
2008-09-04 14:33 UTC, Marian Petras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-09-04 09:57:42 UTC
Product Version: NetBeans IDE Dev (Build 200809040201)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/tester/Desktop/ud1

1. Start IDE with a clean userdir
2. Open java class from attachment
3. Place caret on the line 16 ("SplitPane.setDividerLocation((int) (0.33 * x)|;" - where | is caret) in order to fix the
missing bracket
4. Type bracket
-> nothing happens, it is not possible to fix an error (missing closing bracket)
5. Closing bracket does not work in this source

I haven't found any workaround - "reopening file/IDE restart/delete userdir" cycle didn't help.
Comment 1 Petr Dvorak 2008-09-04 09:58:29 UTC
Created attachment 69027 [details]
Java file where you cannot type a closing bracket ')' anywhere else than in comments
Comment 2 Petr Dvorak 2008-09-04 10:25:09 UTC
Possibly related to fix of issue 144484?
Comment 3 Marian Petras 2008-09-04 14:32:22 UTC
I experience this bug, too. When I try to type the bracket at the end of a row, no bracket appears. Instead, the caret
jumps to the beginning of the next row. Although the text in the editor remains unmodified, a star is displayed next to
the file name in the editor pane's tab. I will attach another example source code where I cannot type the closing bracket.
Comment 4 Marian Petras 2008-09-04 14:33:27 UTC
Created attachment 69059 [details]
sample source code - cannot type right parenthesis
Comment 5 Marian Petras 2008-09-04 14:35:51 UTC
I forgot to add my system info:

NetBeans 6.5 dev. build 080904.
Linux (32-bit, Ubuntu 8.04)
JDK 1.6.0_10-rc (b28)
Comment 6 J Bachorik 2008-09-04 15:28:58 UTC
Regression since build 20080902
Comment 7 Vitezslav Stejskal 2008-09-04 15:41:15 UTC
Reproducible in a dev build. I think it's Mila's.
Comment 8 Jan Lahoda 2008-09-04 19:43:08 UTC
*** Issue 146221 has been marked as a duplicate of this issue. ***
Comment 9 Miloslav Metelka 2008-09-04 19:54:53 UTC
Apologies for the regression it should now be fixed and test added.
http://hg.netbeans.org/main/rev/ce02d0e6c359
Comment 10 Quality Engineering 2008-09-05 06:23:20 UTC
Integrated into 'main-golden', will be available in build *200809050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ce02d0e6c359
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #146139 - Unable to type bracket in a source code.
Comment 11 Jiri Prox 2008-09-05 10:22:46 UTC
verified