Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345817

Summary: Error is too vague
Product: [Eclipse Project] JDT Reporter: Jonathan Camilleri <camilleri.jon>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Source code none

Description Jonathan Camilleri CLA 2011-05-14 13:45:30 EDT
Build Identifier: M20110210-1200 

When I try to compile the attached project I get the following error, which, is too vague:

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 

	at DialogDemo.main(DialogDemo.java:607)


On the other hand TextPad, provides me with the following output, even, though I am still trying to resolve it:

C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\CustomDialog.java:47: cannot find symbol
symbol  : class DialogDemo
location: class components.CustomDialog
    private DialogDemo dd;
            ^
C:\Documents and Settings\Jon\workspace\JavaDev\myCode Snippets\CustomDialog.java:64: cannot find symbol
symbol  : class DialogDemo
location: class components.CustomDialog
    public CustomDialog(Frame aFrame, String aWord, DialogDemo parent) {
                                                    ^
2 errors

Tool completed with exit code 1



Reproducible: Always
Comment 1 Jonathan Camilleri CLA 2011-05-14 13:46:05 EDT
Created attachment 195648 [details]
Source code
Comment 3 Michael Rennie CLA 2011-05-16 10:52:59 EDT
(In reply to comment #0)
> Build Identifier: M20110210-1200 
> 
> When I try to compile the attached project I get the following error, which, is
> too vague:
> 
> Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
> 
>     at DialogDemo.main(DialogDemo.java:607)

That error is shown when you try to run the program, is that when you mean by 'compile'? 

> On the other hand TextPad, provides me with the following output, even, though
> I am still trying to resolve it:
> 

I'm not sure there would be any benefit to printing more information out when a launch fails in this manner, since you get a whole host of error markers in the source code - which point you directly to the problem(s) and in most cases give you quick fixes on how to solve them.

Marking as worksforme, there are no plans to change this
Comment 4 Jonathan Camilleri CLA 2011-05-16 11:09:48 EDT
Please note my disagreement with the review status.