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 178690 - Editor enters newline when inserting single quote
Summary: Editor enters newline when inserting single quote
Status: CLOSED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks: 175887
  Show dependency tree
 
Reported: 2009-12-15 18:22 UTC by _ gtzabari
Modified: 2011-06-08 17:36 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 _ gtzabari 2009-12-15 18:22:25 UTC
Netbeans 6.8 final
JDK 1.7.0-ea-b74

Every time a single quote is typed, the Editor inserts a newline. I believe this issue is a superset of bug #175887. This issue is not reproducible in JDK 1.6.0 update 17.

Repro steps:

1. Open a Java file in the editor
2. Place caret inside Javadoc comment
3. Type: "Gili's comment"
4. Editor will render this as:

"Gili'
s comment"
Comment 1 _ gtzabari 2009-12-15 21:33:16 UTC
Actually this problem is not limited to code comments. It occurs when you insert single quotes anywhere in the file.
Comment 2 David Strupl 2009-12-17 02:18:42 UTC
JDK 1.7 specific bugs are not P2 for us (yet ;-) ).
Comment 3 bernachesfr 2010-06-19 14:14:59 UTC
In the french language the apostrophe (simple quote) is always used alone. The typing of an apostrophe in the editor, either for a string or for a comment asks for long and boring manipulations.
Comment 4 _ gtzabari 2010-06-19 16:53:43 UTC
bernachesfr,

Can you reproduce this issue? I just checked against Netbeans 6.8 and JDK 1.7.0-ea-b94 and it seems to be fixed.
Comment 5 bernachesfr 2010-06-20 09:30:47 UTC
gtzabari,

You are lucky. I checked against both NetBeans 6.8 AND 6.9 with JDK 1.7.0 ; this issue is not fixed. I will test with JDK 1.6.20.
Comment 6 bernachesfr 2010-06-20 16:13:36 UTC
The problem does not exist under the JDK 1.6.20. So, it is a Bug of the JDK 1.7 and not of NetBeans. Sorry not to have written in the good place.
Comment 7 _ gtzabari 2010-06-20 16:21:50 UTC
It's not clear this is a JDK bug, only that it is JDK-specific. This could still be a bug in the way Netbeans interacts with the JDK.
Comment 8 Dusan Balek 2010-11-26 18:29:46 UTC
Is this issue still valid with the current dev build and the latest JDK1.7? It seems to work fine for me.
Comment 9 _ gtzabari 2010-11-27 04:05:49 UTC
I can't verify due to bug #192558
Comment 10 Dusan Balek 2011-02-11 11:46:40 UTC
Cannot reproduce with the current dev build and the latest JDK1.7. Closing as WORKSFORME now. Please reopen the issue with the steps to reproduce if the problem persists.
Comment 11 Marian Mirilovic 2011-06-08 17:36:25 UTC
v/c