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.
Build: NetBeans IDE Dev (Build 200904011705) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: Windows XP, 5.1, x86 User Comments: tapn2it: starting up net beans GUEST: running rcov with a functional test that contains shoulda usage... I'm converting tests to use shoulda from straight unit/functional tests... or at least I think I am :-) speijnik: I was saving a Python file. GUEST: Just using code coverage feature: Running tests and opening ruby-file. (Not running JRuby) tapn2it: opening file from projects view Stacktrace: javax.swing.text.BadLocationException: Invalid offset=-1 not within <0, 56> at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1356) at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1351) at org.netbeans.editor.Utilities.getRowFirstNonWhite(Utilities.java:181) at org.netbeans.modules.gsf.codecoverage.CoverageHighlightsContainer$Highlights.<init>(CoverageHighlightsContainer.java:299) at org.netbeans.modules.gsf.codecoverage.CoverageHighlightsContainer$Highlights.<init>(CoverageHighlightsContainer.java:269) at org.netbeans.modules.gsf.codecoverage.CoverageHighlightsContainer.getHighlights(CoverageHighlightsContainer.java:135)
Created attachment 79743 [details] stacktrace
CoverageHighlightsContainer.java:299 should check for invalid line numbers.
Fixed in jet-main by changeset: 128934:b6a9ff75229e