diff options
author | aclement <aclement> | 2008-01-17 00:03:20 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-01-17 00:03:20 +0000 |
commit | 1f45da2efa026604b1a9ae48057054b075df0f1c (patch) | |
tree | 3df84e5212100b627eef93318621f596e3ab239a | |
parent | 1bd89958fb45b6d00aaa330d1374145aff105521 (diff) | |
download | aspectj-1f45da2efa026604b1a9ae48057054b075df0f1c.tar.gz aspectj-1f45da2efa026604b1a9ae48057054b075df0f1c.zip |
AspectJ6: picking up compiler interface changes
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/WeaverMessageHandler.java | 9 |
1 files changed, 5 insertions, 4 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 b4feb146a..c7d0792f7 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 @@ -20,6 +20,7 @@ import org.aspectj.bridge.IMessageHandler; import org.aspectj.bridge.ISourceLocation; import org.aspectj.bridge.SourceLocation; import org.aspectj.bridge.IMessage.Kind; +import org.aspectj.org.eclipse.jdt.core.compiler.CategorizedProblem; import org.aspectj.org.eclipse.jdt.core.compiler.IProblem; import org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult; import org.aspectj.org.eclipse.jdt.internal.compiler.Compiler; @@ -104,7 +105,7 @@ public class WeaverMessageHandler implements IMessageHandler { } } ReferenceContext referenceContext = findReferenceContextFor(problemSource); - IProblem problem = compiler.problemReporter.createProblem( + CategorizedProblem problem = compiler.problemReporter.createProblem( filename, IProblem.Unclassified, new String[0], @@ -112,7 +113,7 @@ public class WeaverMessageHandler implements IMessageHandler { severity, startPos, endPos, - sLoc != null ? sLoc.getLine() : 0 + sLoc != null ? sLoc.getLine() : 0,sLoc!=null?sLoc.getColumn():0 ); IProblem[] seeAlso = buildSeeAlsoProblems(problem,message.getExtraSourceLocations(), problemSource, @@ -225,7 +226,7 @@ public class WeaverMessageHandler implements IMessageHandler { ProblemSeverities.Ignore, getStartPos(loc,null), getEndPos(loc,null), - loc.getLine()); + loc.getLine(),loc.getColumn()); ret.add(dp); } else { System.err.println("About to abort due to null location, dumping state:"); @@ -236,7 +237,7 @@ public class WeaverMessageHandler implements IMessageHandler { if (usedBinarySourceFileName) { DefaultProblem dp = new DefaultProblem(problemSource.fileName,"see also",0,new String[] {}, ProblemSeverities.Ignore,0, - 0,0); + 0,0,0); ret.add(dp); } IProblem[] retValue = (IProblem[])ret.toArray(new IProblem[]{}); |