diff options
author | cbateman | 2008-09-04 20:52:01 +0000 |
---|---|---|
committer | cbateman | 2008-09-04 20:52:01 +0000 |
commit | 049444494884ad4cb34d7ee74bddc748a4143c3f (patch) | |
tree | e761389da39b0a3e7570a0e2cbce061234f3b56d | |
parent | 26578816bfbc8157d098093a920a0a1145a5ec37 (diff) | |
download | webtools.jsf-049444494884ad4cb34d7ee74bddc748a4143c3f.tar.gz webtools.jsf-049444494884ad4cb34d7ee74bddc748a4143c3f.tar.xz webtools.jsf-049444494884ad4cb34d7ee74bddc748a4143c3f.zip |
Rolls back workaround change for https://bugs.eclipse.org/bugs/show_bug.cgi?id=212225. This workaround is no longer needed, since the root JDT bug is fixed. Existing test coverage discovered the problem and now works ok with the workaround removed.
-rw-r--r-- | jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/TypeUtil.java | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/TypeUtil.java b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/TypeUtil.java index 85b7f470b..d781689d7 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/TypeUtil.java +++ b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/TypeUtil.java @@ -15,7 +15,6 @@ package org.eclipse.jst.jsf.common.util; import java.util.ArrayList; import java.util.List; -import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.jdt.core.IField; import org.eclipse.jdt.core.IJavaProject; @@ -370,21 +369,10 @@ public final class TypeUtil LOOP_UNTIL_FIRST_MATCH: for (int i = 0; i < superTypes.length; i++) { - IType type = superTypes[i]; - - // XXX: this is a partial workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=212225 - // In certain cases, unresolved type names may cause resolveType to - // throw array out of bounds. - try - { - resolved = type.resolveType(fullyQualifiedName); - } - catch (ArrayIndexOutOfBoundsException ae) - { - resolved = null; - JSFCommonPlugin.log(IStatus.WARNING, "Known issue detected. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=212225"); - } - + final IType type = superTypes[i]; + + resolved = type.resolveType(fullyQualifiedName); + if (resolved != null && resolved.length > 0) { resolvedType = childType.getJavaProject().findType(resolved[0][0], resolved[0][1]); |