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 91608 - StackOverflowError when fixing imports
Summary: StackOverflowError when fixing imports
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-28 04:35 UTC by Kirill Sorokin
Modified: 2008-02-25 16:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file w/ StackOverflowError (189.78 KB, text/plain)
2007-01-03 00:17 UTC, Kirill Sorokin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2006-12-28 04:35:26 UTC
public class Main extends Main {
}

Create the above class and press Alt+Shift+F. You'll get a nice StackOverflowError.

--
I'm working with:
NetBeans IDE Dev (Build 200610231500, C/C++ Pack 20061122)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251
Comment 1 Jan Lahoda 2007-01-01 15:54:29 UTC
I was not able to reproduce the stack overflow with either NB5.5 or current
trunk (I do not have build 200610231500 available). Most probably fixed by the
integration of the new Java infrastructure. Could you please attach the stack
trace of the error so we can verify? Thanks.
Comment 2 Kirill Sorokin 2007-01-03 00:17:06 UTC
Created attachment 36992 [details]
IDE log file w/ StackOverflowError
Comment 3 Kirill Sorokin 2007-01-03 00:20:21 UTC
Attached. The steps were:

1) Create a new Java Application project with a Main class
2) Change 'public class Main' to 'public class Main extends Main' (note: it will
get correctly underlined as being erroneous, but we don't care at this point)
3) Press Alt+Shift+F - it will work correctly as all required imports are
already in there
4) Type something like... 'new File();' in either the constructor or the main()
method
5) Press Alt+Shift+F and see the attachment.
Comment 4 Quality Engineering 2007-09-20 09:56:20 UTC
Reorganization of java component
Comment 5 Jan Becicka 2008-02-25 16:17:32 UTC
This issue is not valid in current builds any more. Java support was completely
redesigned in 6.0 time frame. Please use NetBeans 6.0 and later.