Bug 59421 - Bad error message from Eclipse Java Compiler when file is missing
Summary: Bad error message from Eclipse Java Compiler when file is missing
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-21 09:31 EDT by Andrew Yun CLA
Modified: 2004-05-18 11:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Yun CLA 2004-04-21 09:31:34 EDT
When a file to compile is not found, an error message is printed after the 
help text.

Eclipse Java Compiler 0.418, Copyright IBM Corp 2000, 2004. All rights 
reserved.
. . .
    -repeat <n>        repeat compilation process <n> times for perf analysis
    -inlineJSR         inline JSR bytecode
    -enableJavadoc     consider references in javadoc
File NotThere.java is missing
------------------------

This was found while running the J9C. It seems that the PrintWriters have not 
been flushed before printing the error message.
Comment 1 Philipe Mulet CLA 2004-04-21 09:58:42 EDT
We intentionnaly display the help, but likely, we should first print the error 
message, and then the help ?
Comment 2 Andrew Yun CLA 2004-04-21 10:12:20 EDT
It's probably best not to print the help text at all in error cases like this. 
If the help message should be printed, we expect the error message before the 
help text.
Comment 3 Olivier Thomann CLA 2004-04-23 10:15:45 EDT
I will remove the print usage.
Comment 4 Olivier Thomann CLA 2004-04-23 10:25:44 EDT
Fixed and released in HEAD.
Comment 5 David Audel CLA 2004-05-18 11:17:42 EDT
Verified for 3.0M9