harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6079) [jdktools] javac should exit with error code non-zero on compile errors
Date Wed, 04 Feb 2009 10:55:59 GMT

    [ 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.


Mime
View raw message