Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-01-25 11:39:25 -0500
committerSteffen Pingel2012-01-25 11:39:25 -0500
commite984dc4cd4ddea99f0916a899ca06743a6729a76 (patch)
tree5fa032ea910350ed4946ccfb6dd15a566c4197e6 /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal
parent1bf05488095c5e08f24693df9795f17ff529d19c (diff)
downloadorg.eclipse.mylyn.tasks-e984dc4cd4ddea99f0916a899ca06743a6729a76.tar.gz
org.eclipse.mylyn.tasks-e984dc4cd4ddea99f0916a899ca06743a6729a76.tar.xz
org.eclipse.mylyn.tasks-e984dc4cd4ddea99f0916a899ca06743a6729a76.zip
NEW - bug 369697: fix test failures on Java 1.7
https://bugs.eclipse.org/bugs/show_bug.cgi?id=369697 Change-Id: I68b51f8bc733acf73a1a8b85f555c4fbac69a29d
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java
index 66dd96a81..20ec91a39 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java
@@ -136,7 +136,8 @@ public class TaskDataStore {
return readStateInternal(file, false);
} catch (SAXException e) {
// bug 268456: if reading fails, try again using a different XML version
- if (e.getMessage() != null && e.getMessage().contains("invalid XML character")) { //$NON-NLS-1$
+ if (e.getMessage() != null
+ && (e.getMessage().contains("invalid XML character") || e.getMessage().contains("Character reference \"&#"))) { //$NON-NLS-1$ //$NON-NLS-2$
return readStateInternal(file, true);
} else {
throw e;

Back to the top