| Summary: | "Could not find the main class. Program will exit" When an exception is thrown in a static variable | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Chaiavi <avraham2> |
| Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> |
| Status: | RESOLVED NOT_ECLIPSE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | amj87.iitr, darin.eclipse |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Chaiavi
Moving to JDT/Debug
Testcase:
----------8<----------------------------------------------
package test;
public class Test {
private static final String abc = test().toString();
public static Object test(){
return null;
}
}
----------8<----------------------------------------------
(In reply to comment #1) > Moving to JDT/Debug > > Testcase: Correction ----------8<---------------------------------------------- package test; public class Test { private static final String abc = test().toString(); public static Object test(){ return null; } public static void main(String[] args) { } } ----------8<---------------------------------------------- The error is reported from the Java VM, not Eclipse. |