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 58563 - Strange behaviour of 'hasMain' property.
Summary: Strange behaviour of 'hasMain' property.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-05-04 10:54 UTC by ehucka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thrown exceptions (6.27 KB, text/plain)
2005-05-04 10:55 UTC, ehucka
Details
ide.log (18.40 KB, application/x-compressed)
2005-05-04 14:01 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2005-05-04 10:54:52 UTC
I have a class with main function. I started IDE and tried to start this class
(Run File action) but some exceptions were thrown and nothing was started.
I looked into explorer and there was not any method in the class'es hierarchy.
I tried to edit the file but nothing changed until i created a new method there.
Comment 1 ehucka 2005-05-04 10:55:40 UTC
Created attachment 21971 [details]
thrown exceptions
Comment 2 ehucka 2005-05-04 10:57:04 UTC
I've seen the problem only once. Build 200505031930.
Comment 3 ehucka 2005-05-04 11:11:35 UTC
I've seen another similar exception after Save action:

java.lang.NegativeArraySizeException
        at java.util.ArrayList.<init>(ArrayList.java:135)
        at org.netbeans.modules.java.JavaNode$StateUpdater.run(JavaNode.java:739)
        at org.openide.util.Task.run(Task.java:189)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)
Comment 4 Martin Matula 2005-05-04 13:51:24 UTC
Could you please attach the whole log file? Seems like method.getType() returned
null, which is weird.
Comment 5 ehucka 2005-05-04 14:01:19 UTC
Created attachment 21974 [details]
ide.log
Comment 6 Jan Becicka 2005-09-02 15:16:33 UTC
This one was fixed I hope. Cannot reproduce and the code looks fine. Nothing
suspicios there.
Comment 7 ehucka 2005-09-19 11:04:34 UTC
v