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 18530 - StackOverflowError when executing project
Summary: StackOverflowError when executing project
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-11 14:34 UTC by DavidPenney
Modified: 2003-07-01 14:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log file (307.98 KB, text/plain)
2001-12-11 16:56 UTC, DavidPenney
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DavidPenney 2001-12-11 14:34:10 UTC
* Number of build where a bug happened - NetBeans IDE, Development Version 
(Build 200111280100)

* Java Version - 1.3.1_01

Steps
=====
- Select Project: Project Manager menu item. In Project Manager dialog, click 
New button. Enter a name for the project and click OK.

- In Explorer window, right-mouse click your new project and select Add New... 
menu item to add a new file to the project. Follow the Wizard to add a java 
file to the project (I created a JFrame.)

- Select Project: Execute Project menu item. In Set Project Main Class select 
the project name (top-most item in the list) and click OK button. If necessary, 
select Project: Execute Project menu item a second time.


Get StackOverflowError exception.


Thanks,

David
Comment 1 Jesse Glick 2001-12-11 16:48:46 UTC
David, please add your ide.log file as an IssueZilla attachment so the
problem can be diagnosed--thanks.
Comment 2 DavidPenney 2001-12-11 16:56:14 UTC
Created attachment 3776 [details]
ide.log file
Comment 3 _ ttran 2001-12-12 08:51:24 UTC
Note the user is using build from trunk, currently bugs in
core/openide are fixed in release33 branch only
Comment 4 Vitezslav Stejskal 2001-12-12 14:02:15 UTC
Thanks for the steps, it's clearly the bug of 'Set Project Main Class' 
dialog. It should prevent you from marking the Project itself as an 
entry point of execution, otherwise you fall in infinite loop.
Please, select some class which you want to be executed when Execute 
Project action is invoked.

I'll fix it for 3.3.1.
Comment 5 Vitezslav Stejskal 2001-12-14 13:34:50 UTC
User selection of project main class is validated now and OK buton is 
enabled/disabled properly. User is prevented to select project itself 
and any node wich doesn't have both ExecCookie and DebuggerCookie.

Fixed in release33.
Comment 6 Jan Zajicek 2001-12-17 13:00:13 UTC
Verified in release33 build #200112170331. Project node cannot be
selected as main class.
Comment 7 Jan Zajicek 2002-02-08 15:05:45 UTC
Hmm, I have to reopen this issue. It is back again in
3.4dev#200202080100 and even in 3.3.1 ;-( As project main class can
again be selected the name of actual project - root node in the set
main class dialog invoked from Projects main menu.
Comment 8 Vitezslav Stejskal 2002-02-20 14:51:11 UTC
fixed in main trunk
Comment 9 Milan Kubec 2002-04-17 16:32:55 UTC
Verified in dev-200204170100.
Comment 10 Quality Engineering 2003-07-01 14:19:19 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.