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 86086 - Stack overflow when cursor is over a very large multiline string
Summary: Stack overflow when cursor is over a very large multiline string
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-28 20:30 UTC by rhv
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The exception stack trace (31.44 KB, application/octet-stream)
2006-09-28 20:31 UTC, rhv
Details
The exception stack trace (31.44 KB, text/plain)
2006-09-28 20:31 UTC, rhv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rhv 2006-09-28 20:30:16 UTC
I have a function whose body looks like:

String myStr = 
"sentence 1\n" +
"sentence 2\n" +
...
"sentence 400\n";

Whenever the cursor is on or near that string, I get a stack overflow error:

A java.lang.StackOverflowError exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your C:\Documents and
Settings\ads\.netbeans\dev\var\log folder.
Comment 1 rhv 2006-09-28 20:31:25 UTC
Created attachment 34672 [details]
The exception stack trace
Comment 2 rhv 2006-09-28 20:31:31 UTC
Created attachment 34673 [details]
The exception stack trace
Comment 3 Jan Lahoda 2006-09-29 08:28:51 UTC
Java Hints are calling Resource.getElementByOffset which causes the
StackOverflowException - reassigning to java/javacore.
Comment 4 Jan Becicka 2006-10-26 16:27:10 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 5 Quality Engineering 2007-09-20 10:36:21 UTC
Reorganization of java component