Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-01-29 14:24:46 +0000
committerMichael Valenta2003-01-29 14:24:46 +0000
commit1fae3ca55a96a9eb2faad77afe43b141889d2802 (patch)
treef581f9526bb2ba4c9b4723067778936b5d0c1b29
parent2b7d1e2af2082247918cc8844c61cec25a33ed99 (diff)
downloadeclipse.platform.team-1fae3ca55a96a9eb2faad77afe43b141889d2802.tar.gz
eclipse.platform.team-1fae3ca55a96a9eb2faad77afe43b141889d2802.tar.xz
eclipse.platform.team-1fae3ca55a96a9eb2faad77afe43b141889d2802.zip
30486: ClassCastException during shutdown
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java4
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/messages.properties1
2 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java
index 1af47c526..a4fe54eac 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java
@@ -510,8 +510,10 @@ public abstract class RepositoryProvider implements IProjectNature {
return (RepositoryProvider) configElements[j].createExecutableExtension("class"); //$NON-NLS-1$
} catch (CoreException e) {
TeamPlugin.log(e.getStatus());
- return null;
+ } catch (ClassCastException e) {
+ TeamPlugin.log(IStatus.ERROR, Policy.bind("RepositoryProvider.invalidClass", id), e); //$NON-NLS-1$
}
+ return null;
}
}
}
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/messages.properties b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/messages.properties
index 4860bfe34..b343891e8 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/messages.properties
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/messages.properties
@@ -36,6 +36,7 @@ RepositoryProvider.propertyMismatch=Inconsistent session/persistent property sta
RepositoryProvider.linkedResourcesExist=Project ''{0}'' contains linked resources but the''{1}'' repository provider does not supported them.
RepositoryProvider.linkedResourcesNotSupported=Project ''{0}'' is mapped to repository type ''{1}'' which does not support linked resources.
RepositoryProvider.couldNotClearAfterError=A serious error has occured trying to map project ''{0}'' to provider ''{1}''. Please restart Eclipse.
+RepositoryProvider.invalidClass=The class resistered for id {0} is not a subclass of RepositoryProvider.
TeamPlugin_setting_global_ignore_7=setting global ignore

Back to the top