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.
adam_myatt: > editting a JSP file in editor. I added /* */ in javascript block. placed cursor inside the comment and pressed Enter > key several times. error occurred. http://statistics.netbeans.org/analytics/detail.do?id=127779
Build: NetBeans IDE Dev (Build 200901060201) VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26 OS: Linux, 2.6.27-11-generic, i386 User Comments: 1. Create a new JS file 2. type "/*" (without ") and press enter 3. Delete the middle asterisk (press backspace 2x) 4. Press Enter Stacktrace: javax.swing.text.BadLocationException: Invalid offset=-1 at org.netbeans.editor.DocumentContent.checkBounds(DocumentContent.java:334) at org.netbeans.editor.DocumentContent.getString(DocumentContent.java:168) at javax.swing.text.AbstractDocument.getText(AbstractDocument.java:757) at org.netbeans.modules.javascript.editing.JsKeystrokeHandler.beforeBreak(JsKeystrokeHandler.java:320) at org.netbeans.modules.gsf.GsfEditorKitFactory$GsfEditorKit$GsfInsertBreakAction.beforeBreak(GsfEditorKitFactory.java:351) at org.netbeans.editor.BaseKit$InsertBreakAction$1.run(BaseKit.java:1214)
Created attachment 75597 [details] stacktrace
Product Version: NetBeans IDE Dev (Build 200901060201) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13 System: Linux version 2.6.27-11-generic running on i386; UTF-8; en_US (nb) 129 duplicates so far, easily reproducible...
Fixed in changeset a6122611b9e0.
The issue hasn't passed the nomination process for 65patch2 by cut-off date. It has been moved to 65patch3.
Verified in 200901150201
The fix was ported into release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/186eda700475
> The fix was ported into release65_fixes repository. Thanks