From 5911483599f9e45b4e3b82ddf024c1bf42302593 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 27 Jan 2009 02:46:36 +0000 Subject: [PATCH] 246393: new compiler build --- .../compiler/problem/AjProblemReporter.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java index 600abfc37..9d1ea17d0 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java @@ -618,4 +618,20 @@ public class AjProblemReporter extends ProblemReporter { super.duplicateMethodInType(type, methodDecl); } + // pr246393 - if we are going to complain about privileged, we clearly don't know what is going on, so don't + // confuse the user + public void parseErrorInsertAfterToken( + int start, + int end, + int currentKind, + char[] errorTokenSource, + String errorTokenName, + String expectedToken){ + if (expectedToken.equals("privileged")) { + super.parseErrorNoSuggestion(start, end, currentKind, errorTokenSource, errorTokenName); + } else { + super.parseErrorInsertAfterToken(start, end, currentKind, errorTokenSource, errorTokenName, expectedToken); + } + } + } -- 2.39.5