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 61515 - Hints may cause java.lang.StackOverflowError
Summary: Hints may cause java.lang.StackOverflowError
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-07-28 15:51 UTC by Roman Strobl
Modified: 2005-10-07 15:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack Overflow Error (81.03 KB, text/plain)
2005-07-28 15:52 UTC, Roman Strobl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Strobl 2005-07-28 15:51:50 UTC
[NetBeans 200507272036; WinXP; JDK 1.5.0_04]

Issue summary:
--------------
Cast hint may cause attached exception. Sometimes it's necessary to execute the
hint only once, in some cases you need to execute it several times.

Steps to reproduce:
-------------------
1. Add following code a new Java class:
    public String test() {
        Object o;
        return o; |
    }
2. Close the IDE.
3. Launch the IDE.
4. Right after IDE startup go line with | and invoke hint once it appears.
5. Execute the cat hint. 
-> An exception may appear, if it doesn't, undo the changes and try the hint
again until the exception is thrown.

Exception:
----------
java.lang.StackOverflowError
	at org.netbeans.modules.javacore.parser.Scope.computeTypeScope(Scope.java:425)
	at org.netbeans.modules.javacore.parser.Scope.computeTypeScope(Scope.java:425)
	at org.netbeans.modules.javacore.parser.Scope.computeTypeScope(Scope.java:425)
...
Comment 1 Roman Strobl 2005-07-28 15:52:26 UTC
Created attachment 23349 [details]
Stack Overflow Error
Comment 2 Tomas Hurka 2005-09-19 11:06:33 UTC
it seems to be fixed. I cannot reproduce it. Please reopen if you will see it again.
Comment 3 Roman Strobl 2005-10-07 15:12:27 UTC
I haven't seen it recently. Verified.