diff options
author | Nitin Dahyabhai | 2013-08-08 03:51:37 +0000 |
---|---|---|
committer | Nitin Dahyabhai | 2013-08-08 03:51:37 +0000 |
commit | 0cb91db9bcfba6f6d4f70c53593181594fdd0460 (patch) | |
tree | 7bb627d5aaa4613ae5e932cadab7c4869cf6faf7 | |
parent | d48d0eff2a77fa7ef6d459049df6a7a4fe2faee3 (diff) | |
download | webtools.sourceediting-0cb91db9bcfba6f6d4f70c53593181594fdd0460.tar.gz webtools.sourceediting-0cb91db9bcfba6f6d4f70c53593181594fdd0460.tar.xz webtools.sourceediting-0cb91db9bcfba6f6d4f70c53593181594fdd0460.zip |
[nobug] flag missing JSP supertypev201308080352
-rw-r--r-- | bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java index b2d11a82f6..2b98ea2ff9 100644 --- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java +++ b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java @@ -693,6 +693,14 @@ public class JSPTranslator implements Externalizable { fResult.append(fSuperclass + "{" + ENDL); //$NON-NLS-1$ javaOffset += fSuperclass.length() + 2; + List errorTypeNames = new ArrayList(2); + if (!isTypeFound(decodeType(fSuperclass), errorTypeNames)) { + for (int i = 0; i < errorTypeNames.size(); i++) { + Object problem = createJSPProblem(IJSPProblem.F_PROBLEM_ID_LITERAL, IProblem.UndefinedType, MessageFormat.format(JSPCoreMessages.JSPDirectiveValidator_8, new String[]{errorTypeNames.get(i).toString()}), 0,1); + fTranslationProblems.add(problem); + } + } + if(updateRanges) { updateRanges(fDeclarationRanges, javaOffset); } @@ -829,8 +837,8 @@ public class JSPTranslator implements Externalizable { } /** - * /* keep track of cursor position inside the buffer /* appends buffer to - * the final result buffer + * appends the given stringbuffer to the final result buffer, keeping + * track of the position of its contents */ protected void append(StringBuffer buf) { if (getCursorOwner() == buf) { |