aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2004-04-07 09:07:43 +0000
committeraclement <aclement>2004-04-07 09:07:43 +0000
commite7ac54fae25b797a0d3609350a27330bea302fb9 (patch)
tree2e5828699b61be7953f136606f98b5340b02fc1d /org.aspectj.ajdt.core
parent865310a81d644d7ec6ead8f662af1dc4e79b8f07 (diff)
downloadaspectj-e7ac54fae25b797a0d3609350a27330bea302fb9.tar.gz
aspectj-e7ac54fae25b797a0d3609350a27330bea302fb9.zip
Fix for Bugzilla Bug 57430
exception printing
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java
index 8bb0a7c83..d8eb8fbdb 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/AjCompilerAdapter.java
@@ -116,7 +116,14 @@ public class AjCompilerAdapter implements ICompilerAdapter {
} catch (IOException ex) {
AbortCompilation ac = new AbortCompilation(null,ex);
throw ac;
- }
+ } catch (RuntimeException rEx) {
+ if (rEx instanceof AbortCompilation) throw rEx; // Don't wrap AbortCompilation exceptions!
+
+ // This will be unwrapped in Compiler.handleInternalException() and the nested
+ // RuntimeException thrown back to the original caller - which is AspectJ
+ // which will then then log it as a compiler problem.
+ throw new AbortCompilation(true,rEx);
+ }
}
public void beforeProcessing(CompilationUnitDeclaration unit) {