Return-Path: Delivered-To: apmail-sling-commits-archive@www.apache.org Received: (qmail 77422 invoked from network); 7 Jul 2009 09:51:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 09:51:50 -0000 Received: (qmail 62924 invoked by uid 500); 7 Jul 2009 09:52:00 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 62868 invoked by uid 500); 7 Jul 2009 09:52:00 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 62859 invoked by uid 99); 7 Jul 2009 09:52:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 09:52:00 +0000 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 09:51:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id AA24323888D9; Tue, 7 Jul 2009 09:51:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r791771 - /sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/jdt/CompilationUnit.java Date: Tue, 07 Jul 2009 09:51:38 -0000 To: commits@sling.apache.org From: cziegeler@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090707095138.AA24323888D9@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cziegeler Date: Tue Jul 7 09:51:38 2009 New Revision: 791771 URL: http://svn.apache.org/viewvc?rev=791771&view=rev Log: Do not silently swallow exception Modified: sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/jdt/CompilationUnit.java Modified: sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/jdt/CompilationUnit.java URL: http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/jdt/CompilationUnit.java?rev=791771&r1=791770&r2=791771&view=diff ============================================================================== --- sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/jdt/CompilationUnit.java (original) +++ sling/trunk/contrib/scripting/java/src/main/java/org/apache/sling/scripting/java/jdt/CompilationUnit.java Tue Jul 7 09:51:38 2009 @@ -265,12 +265,14 @@ } } } catch (IOException exc) { - exc.printStackTrace(); + handleError(-1, -1, exc.getLocalizedMessage()); } } private void handleError(int line, int column, Object errorMessage) { - if (column < 0) column = 0; + if (column < 0) { + column = 0; + } errors.add(new CompilerError(this.sourceFile, true, line,