From 628b0a06ec4c0efe54bc477e5ba944e4ba0a1614 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 18 May 2005 12:46:27 +0000 Subject: [PATCH] dump the problem in the case when we are about to abort... --- .../ajdt/internal/compiler/WeaverMessageHandler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/WeaverMessageHandler.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/WeaverMessageHandler.java index d70388605..d44ce2ed6 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/WeaverMessageHandler.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/WeaverMessageHandler.java @@ -96,7 +96,7 @@ public class WeaverMessageHandler implements IMessageHandler { endPos, sLoc != null ? sLoc.getLine() : 0 ); - IProblem[] seeAlso = buildSeeAlsoProblems(message.getExtraSourceLocations(), + IProblem[] seeAlso = buildSeeAlsoProblems(problem,message.getExtraSourceLocations(), problemSource, usedBinarySourceFileName); problem.setSeeAlsoProblems(seeAlso); @@ -179,7 +179,7 @@ public class WeaverMessageHandler implements IMessageHandler { return context; } - private IProblem[] buildSeeAlsoProblems(List sourceLocations, + private IProblem[] buildSeeAlsoProblems(IProblem originalProblem,List sourceLocations, CompilationResult problemSource, boolean usedBinarySourceFileName) { List ret = new ArrayList(); @@ -198,6 +198,8 @@ public class WeaverMessageHandler implements IMessageHandler { loc.getLine()); ret.add(dp); } else { + System.err.println("About to abort due to null location, dumping state:"); + System.err.println("> Original Problem="+problemSource.toString()); throw new RuntimeException("Internal Compiler Error: Unexpected null source location passed as 'see also' location."); } } -- 2.39.5