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 22813 - Incorrectly configured execution produces strange error message
Summary: Incorrectly configured execution produces strange error message
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks: 29934
  Show dependency tree
 
Reported: 2002-04-25 17:17 UTC by _ tboudreau
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2002-04-25 17:17:44 UTC
This error message has never been friendly, but in
build 20020425100, executing a misconfigured
source gives you a dialog that says:

"java.lang.reflect.Modifier.isPublic(private
static void
org.netbeans.modules.java.imptool.SettingsPaneLmain(java.lang.String[]))=false"

Yipes!
Comment 1 Svata Dedic 2002-04-30 14:52:49 UTC
Sorry, what's a misconfigured source ? Something which has no "main"
method ? Wrong executor ? (which one ?)
Comment 2 _ tboudreau 2002-04-30 15:05:45 UTC
Looks like I tried to execute a class that had a private main() method
- just a silly mistake.  But it would be better, when catching this
exception, to test for the condition (and also non-static main method)
and say something like "The main() method of this class is incorrectly
defined and cannot be executed.  The proper signature is..."
Comment 3 Tomas Hurka 2002-05-03 13:44:27 UTC
Fixed in trunk. Check added to JavaProcessExecutor and
JavaThreadExecutor.
Comment 4 Jan Becicka 2002-10-14 16:15:01 UTC
Verified in 200210090100
Comment 5 Quality Engineering 2003-07-01 13:16:42 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.