You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by tc...@apache.org on 2006/04/25 13:16:23 UTC

svn commit: r396840 - /jakarta/commons/sandbox/jci/trunk/compilers/commons-jci-janino/src/java/org/apache/commons/jci/compilers/JaninoJavaCompiler.java

Author: tcurdt
Date: Tue Apr 25 04:15:54 2006
New Revision: 396840

URL: http://svn.apache.org/viewcvs?rev=396840&view=rev
Log:
catch all exceptions

Modified:
    jakarta/commons/sandbox/jci/trunk/compilers/commons-jci-janino/src/java/org/apache/commons/jci/compilers/JaninoJavaCompiler.java

Modified: jakarta/commons/sandbox/jci/trunk/compilers/commons-jci-janino/src/java/org/apache/commons/jci/compilers/JaninoJavaCompiler.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jci/trunk/compilers/commons-jci-janino/src/java/org/apache/commons/jci/compilers/JaninoJavaCompiler.java?rev=396840&r1=396839&r2=396840&view=diff
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/compilers/commons-jci-janino/src/java/org/apache/commons/jci/compilers/JaninoJavaCompiler.java (original)
+++ jakarta/commons/sandbox/jci/trunk/compilers/commons-jci-janino/src/java/org/apache/commons/jci/compilers/JaninoJavaCompiler.java Tue Apr 25 04:15:54 2006
@@ -120,7 +120,9 @@
             } catch (final LocatedException e) {
                 problems.add(new JaninoCompilationProblem(e));
             } catch (final IOException e) {
-                problems.add(new JaninoCompilationProblem(fileNameForClass, "IO:" + e.getMessage(), true));
+                problems.add(new JaninoCompilationProblem(fileNameForClass, "IOException:" + e.getMessage(), true));
+            } catch (final Exception e) {
+                problems.add(new JaninoCompilationProblem(fileNameForClass, "Exception:" + e.getMessage(), true));
             } finally {
                 if (scanner != null) {
                     try {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org