]> source.dussan.org Git - aspectj.git/commitdiff
246393: new compiler build
authoraclement <aclement>
Tue, 27 Jan 2009 02:46:36 +0000 (02:46 +0000)
committeraclement <aclement>
Tue, 27 Jan 2009 02:46:36 +0000 (02:46 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/problem/AjProblemReporter.java

index 600abfc379fa92dabc18b3547d3d328dedc20a90..9d1ea17d0fe1b1add7c8dbfdd23de8ae8aee141d 100644 (file)
@@ -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);
+               }
+       }
+
 }