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.
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
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.
Created attachment 36992 [details] IDE log file w/ StackOverflowError
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.
Reorganization of java component
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.