Summary: | Stack overflow in code assist | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Cagatay Kavukcuoglu <cagatayk> | ||||
Component: | Core | Assignee: | David Audel <david_audel> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | major | ||||||
Priority: | P3 | ||||||
Version: | 2.1 | ||||||
Target Milestone: | 2.1.2 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Cagatay Kavukcuoglu
2003-03-31 14:13:09 EST
Created attachment 4402 [details]
Stack trace
Stack trace for StackOverflowError in content assist
I can not reproduce this problem in 2.1 release. Cagatay - What is your version of eclipse ? Could you give me a specific test case ? I have 2.1 release installed. I had one other serious problem unrelated to this bug after I reported this (A package private class in a project was not being included in the Java model, thus a bunch of squigglies). I can't reproduce the problem any more after purging all the JDT index files under .metadata and rebuilding from scratch. I'll try some more and let you know if I manage to get it broken again. I can not reproduce the problem, but it seems to appear with the following code (deducted from the stacktrace). public class X { void foo(){ ... new Object(){ ... double.<cursor> }; } } Cagatay - Could you look at the local history, to find the code which show the problem ? Unfortunately I'm hitting myself on the head now for not saving the code that exhibits the problem. It's not in my local history. Your guess is pretty close though. I tried the scenario you outlined and could not reproduce the problem in my workspace. I'll try to think a few more alternatives and see if anything comes up. I can reproduce the problem in 3.0M1 with the following test case. public class X { void foo() { new Object() { void bar() { new Object() {}; double.<cursor> } }; } } Fix should also be backported to 2.1-maintenance stream. Fixed. Regression test added. Fix backported to 2.1-maintenance. Regression test added. Verified. Candidate for 2.1.2 Verified with build 2.1.2 RC1 Verified with build 2.1.2 RC2 |