1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-02 05:03:36 +02:00
cdt/core/org.eclipse.cdt.ui.tests
Jonah Graham 7818f6e494 Bug 558809: Handle cases where Oomph corrupts \0 char in preference
Some CDT preferences use \0 as a separator in preferences. Somewhere
in the Oomph preference synchronizer stack there is, or was, a place
that failed to escape/unescape preferences with encoded \0 properly.

CDT would then fail to parse the preference and an exception would
be raised, causing code completions and the editor to be broken.

This patch hardens the CDT code to:
(1) Allow an escaped \0 to be used as a separator on
    read (Oomph uses ${0x0})
(2) Handle NumberFormatExceptions gracefully. In this case that means
    showing user a pop-up that their completion preferences
    are empty and offering to reset them, or edit them in preference
    page. This UI logic already existed, so all the new code
    has to do on failed parse is return a list of all disabled
    completions.

Change-Id: Ibf3b05c0855bb96c195ca43139a50c27a2a90c7e
2020-08-31 20:06:10 -04:00
..
.settings Bug 566511: [releng] Add missing UTF-8 encoding for all CDT projects 2020-08-30 20:02:41 -04:00
icons
META-INF Fixed "The value for X attribute is not externalized" warning 2020-08-28 21:32:18 +02:00
resources Bug 522200: [C++17] Add support for structured binding declarations 2019-08-05 09:00:35 +02:00
src/org/eclipse/cdt/ui Bug 564002: Restore the default pattern of the surefire-plugin 2020-08-13 14:18:47 -04:00
ui/org/eclipse/cdt/ui/tests Bug 558809: Handle cases where Oomph corrupts \0 char in preference 2020-08-31 20:06:10 -04:00
.classpath Bug 562494: Update BREE to Java 11 2020-08-24 17:50:56 -04:00
.options
.project
about.html Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh 2018-11-22 20:31:51 +00:00
build.properties Bug 540373: Cleanup: Remove trailing whitespace in properties files 2018-11-23 07:52:26 +00:00
plugin.properties Fixed "The value for X attribute is not externalized" warning 2020-08-28 21:32:18 +02:00
plugin.xml Bug 536255 - Extension point for open call hierarchy view 2018-09-08 03:03:00 -04:00
pom.xml Bug 564002: Restore the default pattern of the surefire-plugin 2020-08-13 14:18:47 -04:00
test.xml