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 201102240001) VM: Java HotSpot(TM) Client VM, 21.0-b02, Java(TM) SE Runtime Environment, 1.7.0-ea-b130 OS: Linux User Comments: GUEST: Walking through Java Call Hierarchy of callee's starting at main() ttokoly: 1. Unzip a project CallHierarchy to some work directory - there is link: http://wiki.netbeans.org/wiki/images/7/7e/SampleProjects_TS_65_CallHierarchy.zip 2. Start IDE with a clean userdir 3. Invoke File | Open Project... action 4. Select unzipped projects default 5. Scanning structure of project should be performed (It takes a while) 6. Open NewClassCycle1.java in editor 7. Invoke Call Hierarchy from the popup menu above the "gFunct" method on line 14 (you can view callers or callees) 8. Expand all nodes in the tree 9. Open main.java in the editor 10. Invoke Call Hierarchy from the popup menu above the "CapFirstLetterOfEachWord" method on line 45 11. Click Show Hierarchy of Callers to ensure you are viewing callers of "CapFirstLetterOfEachWord" method 12. Expand all nodes in the tree again According to the Refactoring Sanity Test Specification ( http://wiki.netbeans.org/STS_68_Refactoring -> Call Hierarchy - Expanding nodes ) should be all work fine, but in expanding second node in Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: 25255 at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:870) at java.lang.StringBuilder.substring(StringBuilder.java:72) at java.lang.AbstractStringBuilder.subSequence(AbstractStringBuilder.java:849) at java.lang.StringBuilder.subSequence(StringBuilder.java:72) at org.netbeans.modules.refactoring.java.WhereUsedElement.create(WhereUsedElement.java:219) at org.netbeans.modules.refactoring.java.callhierarchy.CallOccurrence.createOccurrence(CallOccurrence.java:85)
Created attachment 106422 [details] stacktrace
Cannot reproduce on Mac. Is it reproducible or rather RANDOM? Thanks
I'm not sure, because I'm not at work (where I tested it), but i think YES, it's reproducible, I'm pretty sure, that I tryed it twice. But for 100% certainty I can try reproduce it one more time - on monday.
(In reply to comment #2) > Cannot reproduce on Mac. Is it reproducible or rather RANDOM? Thanks I've tested it now and I can't reproduce it, so - It's random.
Cannot reproduce. Please reopen if it happans again.