Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 56412 invoked from network); 4 Feb 2009 10:56:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2009 10:56:20 -0000 Received: (qmail 60357 invoked by uid 500); 4 Feb 2009 10:56:20 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 60342 invoked by uid 500); 4 Feb 2009 10:56:20 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 60333 invoked by uid 99); 4 Feb 2009 10:56:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Feb 2009 02:56:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Feb 2009 10:56:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D8152234C4A8 for ; Wed, 4 Feb 2009 02:55:59 -0800 (PST) Message-ID: <1754275470.1233744959884.JavaMail.jira@brutus> Date: Wed, 4 Feb 2009 02:55:59 -0800 (PST) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6079) [jdktools] javac should exit with error code non-zero on compile errors In-Reply-To: <636336475.1233236699693.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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.