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 192241

Summary: StringIndexOutOfBoundsException: String index out of range: -86
Product: projects Reporter: vince_soleil <vince_soleil>
Component: MavenAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: normal CC: bernd_zedv, cdeblesson, rjdkolb
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 174134
Attachments: stacktrace

Description vince_soleil 2010-11-21 14:09:13 UTC
This bug was originally marked as duplicate of bug 182887, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261
OS: Mac OS X

User Comments:
cdeblesson: I double-clicked on a failed test result to open the test Class

bernd_zedv: clicked on JUnit error message

bernd_zedv: clicked on a line in the JUnit TestResults left scrolling pane.

GUEST: jumping to failed test

vince_soleil: Double click on the failure node of a groovy test




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -86
   at java.lang.String.substring(String.java:1937)
   at org.netbeans.modules.maven.junit.nodes.OutputUtils.getFile(OutputUtils.java:213)
   at org.netbeans.modules.maven.junit.nodes.OutputUtils.openCallstackFrame(OutputUtils.java:156)
   at org.netbeans.modules.maven.junit.nodes.JumpAction.actionPerformed(JumpAction.java:79)
   at org.openide.explorer.view.TreeView$PopupSupport.mouseClicked(TreeView.java:1565)
   at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
Comment 1 vince_soleil 2010-11-21 14:09:17 UTC
Created attachment 103163 [details]
stacktrace
Comment 2 Jesse Glick 2010-11-23 22:53:41 UTC
core-main #247ab93d31a3
Comment 3 Quality Engineering 2010-11-25 06:19:14 UTC
Integrated into 'main-golden', will be available in build *201011250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/247ab93d31a3
User: Jesse Glick <jglick@netbeans.org>
Log: #192241: StringIndexOutOfBoundsException: String index out of range: -86