You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2009/02/04 11:55:59 UTC
[jira] Commented: (HARMONY-6079) [jdktools] javac should exit with
error code non-zero on compile errors
[ https://issues.apache.org/jira/browse/HARMONY-6079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670303#action_12670303 ]
Tim Ellison commented on HARMONY-6079:
--------------------------------------
The javac tool page [1] doesn't define the return codes. Playing around a bit with the RI it would appear
return 0 = success
return 1 = compile error / unrecognized option
return 2 = no args given, usage printed
I'll recreate those return codes unless you see any better definition.
[1] http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html
> [jdktools] javac should exit with error code non-zero on compile errors
> -----------------------------------------------------------------------
>
> Key: HARMONY-6079
> URL: https://issues.apache.org/jira/browse/HARMONY-6079
> Project: Harmony
> Issue Type: Bug
> Components: JDK
> Reporter: Mark Hindess
> Assignee: Tim Ellison
> Priority: Minor
>
> javac currently always exits with error code zero even if there are compile errors. Sun javac exits with non-zero error code which is useful when javac is used from scripts and Makefiles. I think we should adopt Sun javac behaviour.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.