| Summary: | Eclipse exits with 0 exit code when application is throwing an exception | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Alex <alex.leites> | ||||
| Component: | Compendium | Assignee: | Thomas Watson <tjwatson> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | alex.leites, gunnar, johan.wannheden, martin.skorsky, remy.suen, tjwatson | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | 3.6.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Alex
Verified same issue exists when staring via launcher: java -jar plugins\org.eclipse.equinox.launcher_1.1.0.v20100507.jar -consolelog -application org.eclipse.ant.core.antRunner -f nosuchfile Besides the exit code = 0, the following message (that used to be produced in these cases) is no longer present: "An error has occurred. See the log file <worspace path>\.metadata\.log." Trying to judge the potential impact, while this apparently affects any application throwing an exception, in case of antRunner it makes me wonder if e.g. failed headless PDE builds may start appearing successful ... This is a regression that we should fix in 3.6.1. Created attachment 175782 [details]
patch
This patch fixes the issue by making sure we do not set the exit code property when the result == null for the call to setInternalResult. In that case we assume it is an exception case. The value of NULL_RESULT is used if the application exits without exception with a null result.
Patch released to HEAD and 3.6.x stream. |