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.
As far as I can tell, there is no option to stop either a close single quote or a close double quote from appearing when the user types the open quote. Turning off 'insert close bracket automatically' doesn't help.
It is regression and should be fixed into NB 5.0
fixed in [maintrunk] Mila, Roman, could you please review/test the fix? Thanks. /cvs/java/editor/src/org/netbeans/modules/editor/java/BracketCompletion.java,v <-- BracketCompletion.java new revision: 1.14; previous revision: 1.13 cvs diff -u -r1.13 -r1.14 BracketCompletion.java Index: BracketCompletion.java =================================================================== RCS file: /cvs/java/editor/src/org/netbeans/modules/editor/java/BracketCompletion.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- BracketCompletion.java 6 Dec 2005 14:13:01 -0000 1.13 +++ BracketCompletion.java 13 Dec 2005 15:23:37 -0000 1.14 @@ -552,6 +552,10 @@ static boolean completeQuote(BaseDocument doc, int dotPos, Caret caret, char bracket) throws BadLocationException { + if (!completionSettingEnabled()){ + return false; + } + if (isEscapeSequence(doc, dotPos)){ // \" or \' typed return false; }
I approve the fix.
Verified in trunk build 200512131900. I agree with fixing in release50 branch.
integrated into [release50] /cvs/java/editor/src/org/netbeans/modules/editor/java/BracketCompletion.java,v <-- BracketCompletion.java new revision: 1.13.2.1; previous revision: 1.13
Verified in 5.0 200512222030 && trunk 200512221900.