Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Jaun2013-11-12 15:33:39 +0000
committerChris Jaun2013-11-12 15:33:39 +0000
commitc171993b92a1fea0448558d1edfe6e3e6278a6b5 (patch)
treebe4d4193d2e13bf7f19790f58cc561d4f0048439
parent28f16d0a371fb8221d9161d7750376ddd8ec0efd (diff)
downloadwebtools.maps-c171993b92a1fea0448558d1edfe6e3e6278a6b5.tar.gz
webtools.maps-c171993b92a1fea0448558d1edfe6e3e6278a6b5.tar.xz
webtools.maps-c171993b92a1fea0448558d1edfe6e3e6278a6b5.zip
[384319] CPU utilization to 100% when this is appended to new object
definition
-rw-r--r--bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/codeassist/complete/CompletionParser.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/codeassist/complete/CompletionParser.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/codeassist/complete/CompletionParser.java
index 9d8302ded..962ff75bc 100644
--- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/codeassist/complete/CompletionParser.java
+++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/codeassist/complete/CompletionParser.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -23,6 +23,7 @@ package org.eclipse.wst.jsdt.internal.codeassist.complete;
import org.eclipse.wst.jsdt.core.ast.IExpression;
import org.eclipse.wst.jsdt.core.ast.IFieldReference;
import org.eclipse.wst.jsdt.core.ast.ISingleNameReference;
+import org.eclipse.wst.jsdt.core.ast.IThisReference;
import org.eclipse.wst.jsdt.core.compiler.CharOperation;
import org.eclipse.wst.jsdt.internal.codeassist.impl.AssistParser;
import org.eclipse.wst.jsdt.internal.codeassist.impl.Keywords;
@@ -3318,6 +3319,10 @@ protected JavadocParser createJavadocParser() {
ISingleNameReference ref = (ISingleNameReference)receiver;
token = new String(ref.getToken()) + "." + token;
receiver = null;
+ } else if(receiver instanceof IThisReference) {
+ IThisReference ref = (IThisReference)receiver;
+ token = "this." + token;
+ receiver = null;
}
}

Back to the top