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.
Summary: | removing dependencies from library node in project window | ||
---|---|---|---|
Product: | platform | Reporter: | williambacchi |
Component: | Text | Assignee: | Miloslav Metelka <mmetelka> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
williambacchi
2013-08-24 04:28:26 UTC
You can only add dependency, then open project.xml and place caret and the last line. After that remove that dependency and you get also an IllegalArgumentException: bad position. Problem is with caret position, b/c project.xml file is modified (shortened) and after refresh it is not possible to place caret back to nonexistent position. Problem is probably in openide.text DocumentOpenClose.DocumentLoad.run()->atomicLockedRun() in for (int i = 0; i < reloadCaretOffsets.length; i++) { try { caretPositions[i] = loadDoc.createPosition(reloadCaretOffsets[i]); } catch (BadLocationException ex) { caretPositions[i] = loadDoc.getEndPosition(); } } b/c loadDoc.createPosition(reloadCaretOffsets[i]) fails and returning an end position of caret comes from the old file. Returning loadDoc.getSartPosition() would help. Reassigned to default owner. |