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 85208 - JavaHintsProvider with invalid offset -- BadLocationException
Summary: JavaHintsProvider with invalid offset -- BadLocationException
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 87136
  Show dependency tree
 
Reported: 2006-09-19 10:07 UTC by Max Sauer
Modified: 2007-01-17 10:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
BLE stack trace (1.65 KB, text/plain)
2006-09-19 10:11 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2006-09-19 10:07:20 UTC
Occasionally, when deleting a LOC (via Ctrl-E), following BLE pops up: 
 
javax.swing.text.BadLocationException: Invalid offset=1959, docLength=1955 
        at 
org.netbeans.editor.DocumentContent.checkOffset(DocumentContent.java:281) 
        at 
org.netbeans.editor.DocumentContent.createBiasMark(DocumentContent.java:104) 
        at 
org.netbeans.editor.DocumentContent.createBiasPosition(DocumentContent.java:100) 
        at 
org.netbeans.editor.BaseDocument.createPosition(BaseDocument.java:1157) 
... 
(whole stack trace attached) 
 
This does not seem to break anything. 
 
---   
NetBeans IDE Dev (Build 060919)   
1.5.0_05; Java HotSpot(TM) Server VM 1.5.0_05-b05   
Linux version 2.6.12-1.1390_FC4smp running on i386   
en_US (nb); UTF-8   
NetBeans-dev-060919
Comment 1 Max Sauer 2006-09-19 10:11:46 UTC
Created attachment 34134 [details]
BLE stack trace
Comment 2 Jan Lahoda 2006-10-02 13:51:24 UTC
Fixed:
Checking in JavaHintsProvider.java;
/cvs/java/hints/src/org/netbeans/modules/java/hints/JavaHintsProvider.java,v 
<--  JavaHintsProvider.java
new revision: 1.58.2.3; previous revision: 1.58.2.2
done
Comment 3 Max Sauer 2006-10-05 14:05:10 UTC
I'm not able to reproduce this anymore. Marking as verified.

---
NetBeans IDE Dev (Build 061005)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b99
SunOS version 5.10 running on sparc
en (nb); ISO646-US